Browse Source

添加时区设置

zhangweicheng 5 years ago
parent
commit
a3ef11da50
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Dockerfile

+ 5 - 0
Dockerfile

@@ -9,6 +9,11 @@ RUN mkdir tmp \
 
 FROM base-alpine:latest
 
+RUN apk update \
+    && apk add tzdata \
+    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
+    && echo "Asia/Shanghai" > /etc/timezone
+
 COPY --from=build /ConstructionOperation /ConstructionOperation
 
 COPY . /ConstructionOperation