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

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"]