update database driver to modernc.org/sqlite and add Dockerfile with multi-stage build

This commit is contained in:
2025-07-28 19:10:34 -04:00
parent 6f6ba19154
commit 02653c3863
3 changed files with 28 additions and 1 deletions

1
.gitignore vendored Normal file
View File

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

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