This commit is contained in:
2025-09-28 13:47:30 +08:00
parent 22a2a2fb27
commit 1d55401574

View File

@@ -10,6 +10,10 @@ COPY main.go ./
RUN go build -o api RUN go build -o api
FROM alpine:3.20 AS certs
RUN apk add --no-cache ca-certificates
FROM scratch FROM scratch
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/api /api COPY --from=builder /app/api /api
ENTRYPOINT ["/api"] ENTRYPOINT ["/api"]