feat(deploy): compose w/ nginx api-prefix ingress, scaled stateless api, e2e smoke

This commit is contained in:
2026-09-06 19:59:27 +08:00
parent a11bf28155
commit 94b215c2b3
7 changed files with 129 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM golang:1.26-alpine AS build
WORKDIR /src
COPY backend/go.mod backend/go.sum ./
RUN go mod download
COPY backend/ ./
RUN CGO_ENABLED=0 go build -trimpath -o /server ./cmd/server
FROM alpine:3.20
RUN adduser -D -H app
COPY --from=build /server /server
USER app
EXPOSE 8080
ENTRYPOINT ["/server"]