统一时间格式和时区
This commit is contained in:
+4
-1
@@ -27,8 +27,11 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /server ./cmd/server
|
||||
FROM ${BACKEND_RUNTIME_IMAGE}
|
||||
|
||||
ARG ALPINE_MIRROR
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN sed -i "s|https://dl-cdn.alpinelinux.org/alpine|${ALPINE_MIRROR}|g; s|http://dl-cdn.alpinelinux.org/alpine|${ALPINE_MIRROR}|g" /etc/apk/repositories \
|
||||
&& apk --no-cache add ca-certificates tzdata curl
|
||||
&& apk --no-cache add ca-certificates tzdata curl \
|
||||
&& ln -snf "/usr/share/zoneinfo/${TZ}" /etc/localtime \
|
||||
&& echo "${TZ}" >/etc/timezone
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user