add .gitignore and Dockerfile; update submodule URLs to use SSH

This commit is contained in:
2025-07-28 19:13:33 -04:00
parent 6f6ba19154
commit ca4335ae70
4 changed files with 30 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea/

4
.gitmodules vendored
View File

@@ -1,6 +1,6 @@
[submodule "backend"]
path = backend
url = https://gitea.siteworxpro.com/siteworxpro/gun-manager-backend.git
url = git@gitea.siteworxpro.com:siteworxpro/gun-manager-backend.git
[submodule "frontend"]
path = frontend
url = https://gitea.siteworxpro.com/siteworxpro/gun-manager-frontend.git
url = git@gitea.siteworxpro.com:siteworxpro/gun-manager-frontend.git

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM node:22.14.0 AS frontend
WORKDIR /frontend
ADD frontend/ ./
RUN npm install && npm run build
FROM golang:1.24.4 AS backend
ENV CGO_ENABLED=0
WORKDIR /backend
ADD backend/ .
RUN go mod download
RUN go build -o /backend/app
FROM alpine AS runtime
WORKDIR /app
COPY --from=frontend /frontend/dist /app/dist
COPY --from=backend /backend/app /app/app
EXPOSE 8000
ENTRYPOINT ["/app/app"]

Submodule backend updated: f5742527f6...5ac3032a16