在Dockerfile中添加tzdata包以支持时区信息

This commit is contained in:
wood chen 2025-03-11 14:33:37 +08:00
parent 488c4a04d4
commit 6fd1847bce

View File

@ -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"]