Browse Source

添加时区设置

zhangweicheng 5 năm trước cách đây
mục cha
commit
a3ef11da50
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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