mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
Set the default Docker timezone to Asia/Shanghai
This commit is contained in:
@@ -12,6 +12,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o ./CLIProxyAPI ./cmd/server/
|
|||||||
|
|
||||||
FROM alpine:3.22.0
|
FROM alpine:3.22.0
|
||||||
|
|
||||||
|
RUN apk add --no-cache tzdata
|
||||||
|
|
||||||
RUN mkdir /CLIProxyAPI
|
RUN mkdir /CLIProxyAPI
|
||||||
|
|
||||||
COPY --from=builder ./app/CLIProxyAPI /CLIProxyAPI/CLIProxyAPI
|
COPY --from=builder ./app/CLIProxyAPI /CLIProxyAPI/CLIProxyAPI
|
||||||
@@ -20,4 +22,8 @@ WORKDIR /CLIProxyAPI
|
|||||||
|
|
||||||
EXPOSE 8317
|
EXPOSE 8317
|
||||||
|
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
|
||||||
|
RUN cp /usr/share/zoneinfo/${TZ} /etc/localtime && echo "${TZ}" > /etc/timezone
|
||||||
|
|
||||||
CMD ["./CLIProxyAPI"]
|
CMD ["./CLIProxyAPI"]
|
||||||
Reference in New Issue
Block a user