From 6fd1847bce09a3ca708dcd415f9133d891969e3a Mon Sep 17 00:00:00 2001 From: wood chen Date: Tue, 11 Mar 2025 14:33:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8Dockerfile=E4=B8=AD=E6=B7=BB=E5=8A=A0t?= =?UTF-8?q?zdata=E5=8C=85=E4=BB=A5=E6=94=AF=E6=8C=81=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index f25bcc13..6968b448 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,8 @@ FROM golang:1.23-alpine AS builder WORKDIR /app +RUN apk add --no-cache tzdata + COPY ../. /app/ RUN rm -rf /app/ui/dist @@ -28,6 +30,9 @@ FROM alpine:latest WORKDIR /app +RUN apk add --no-cache tzdata + COPY --from=builder /app/certimate . +COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"] \ No newline at end of file