- Dockerfile fixed;

This commit is contained in:
naudachu 2023-06-06 18:28:57 +05:00
parent 72eabae461
commit 7cfdb84c22
1 changed files with 2 additions and 0 deletions

View File

@ -9,7 +9,9 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -ldflags '-extldflags "-sta
FROM scratch FROM scratch
# the test program: # the test program:
COPY --from=app-builder /go/bin/main /ticket-creator COPY --from=app-builder /go/bin/main /ticket-creator
COPY --from=app-builder /go/src/ticket-creator/cmd/.env /
# the tls certificates: # the tls certificates:
# NB: this pulls directly from the upstream image, which already has ca-certificates: # NB: this pulls directly from the upstream image, which already has ca-certificates:
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/ticket-creator"] ENTRYPOINT ["/ticket-creator"]