Browse Source

fix: fix Docker image's certificate & timezone problem (close #34)

JustSong 2 years ago
parent
commit
c46000db75
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

@@ -21,6 +21,10 @@ RUN go build -ldflags "-s -w -X 'message-pusher/common.Version=$(cat VERSION)' -
 FROM alpine
 
 ENV PORT=3000
+RUN apk update \
+    && apk upgrade \
+    && apk add --no-cache ca-certificates \
+    && update-ca-certificates 2>/dev/null || true
 COPY --from=builder2 /build/message-pusher /
 EXPOSE 3000
 WORKDIR /data