fix: fix "X509: Certificate Signed by Unknown Authority" error by replacing scratch with alpine

This commit is contained in:
JustSong
2022-11-23 16:46:21 +08:00
parent 640fad7e96
commit d9d38d12ed

View File

@@ -17,7 +17,7 @@ COPY --from=builder /build/build ./web/build
RUN go mod download
RUN go build -ldflags "-s -w -extldflags '-static'" -o message-pusher
FROM scratch
FROM alpine
ENV PORT=3000
COPY --from=builder2 /build/message-pusher /