add docker push to docker-hub

This commit is contained in:
Robin Olsen
2026-02-19 19:04:29 +01:00
parent e909de3d5b
commit aa8e0c1f06
2 changed files with 9 additions and 5 deletions

View File

@@ -4,9 +4,10 @@ COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo \
-ldflags="-w -s" -trimpath -o survey ./cmd/survey/
-ldflags="-w -s" -trimpath -o pm ./cmd/survey/
FROM gcr.io/distroless/static-debian13
COPY --from=builder /app/survey /survey
WORKDIR /data
COPY --from=builder /app/pm /pm
EXPOSE 8080
ENTRYPOINT ["/survey"]
ENTRYPOINT ["/pm"]