mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 17:31:55 +08:00
在Dockerfile中添加tzdata包以支持时区信息
This commit is contained in:
parent
488c4a04d4
commit
6fd1847bce
@ -14,6 +14,8 @@ FROM golang:1.23-alpine AS builder
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apk add --no-cache tzdata
|
||||||
|
|
||||||
COPY ../. /app/
|
COPY ../. /app/
|
||||||
|
|
||||||
RUN rm -rf /app/ui/dist
|
RUN rm -rf /app/ui/dist
|
||||||
@ -28,6 +30,9 @@ FROM alpine:latest
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apk add --no-cache tzdata
|
||||||
|
|
||||||
COPY --from=builder /app/certimate .
|
COPY --from=builder /app/certimate .
|
||||||
|
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
|
|
||||||
ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"]
|
ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"]
|
Loading…
x
Reference in New Issue
Block a user