add .gitignore and Dockerfile; update submodule URLs to use SSH
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.idea/
|
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -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
26
Dockerfile
Normal 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"]
|
2
backend
2
backend
Submodule backend updated: f5742527f6...5ac3032a16
Reference in New Issue
Block a user