Skip to content

Commit

Permalink
fix: fix Docker image's certificate & timezone problem
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Dec 16, 2022
1 parent cd99269 commit 2eeceb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ RUN go build -ldflags "-s -w -X 'gin-template/common.Version=$(cat VERSION)' -ex

FROM alpine

RUN apk update \
&& apk upgrade \
&& apk add --no-cache ca-certificates tzdata \
&& update-ca-certificates 2>/dev/null || true
ENV PORT=3000
COPY --from=builder2 /build/gin-template /
EXPOSE 3000
Expand Down

0 comments on commit 2eeceb7

Please sign in to comment.