real init

This commit is contained in:
2026-07-29 01:36:09 +01:00
parent bb8c94f06e
commit 0accff3e19
55 changed files with 3806 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM golang:1.26-alpine
WORKDIR /app
COPY src/go.mod src/go.sum ./
RUN go mod download
COPY src/ .
# Satisfy go:embed during debug builds
RUN mkdir -p frontend/dist && touch frontend/dist/.placeholder
# Output the binary directly to /server to match the ENTRYPOINT
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /server .
EXPOSE 8080
ENTRYPOINT ["/server"]