Browse Source

add TZ for mc

Stille 3 năm trước cách đây
mục cha
commit
81636d488f
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      mc/Dockerfile

+ 4 - 0
mc/Dockerfile

@@ -1,6 +1,10 @@
 FROM alpine
 LABEL maintainer="Stille <[email protected]>"
 
+ENV TZ=Asia/Shanghai
+RUN apk add --no-cache tzdata \
+    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
+    && echo $TZ > /etc/timezone
 RUN if [ "$(uname -m)" = "x86_64" ]; then export PLATFORM=amd64 ; else if [ "$(uname -m)" = "aarch64" ]; then export PLATFORM=arm64 ; fi fi \
     && wget https://dl.minio.io/client/mc/release/linux-${PLATFORM}/mc -O /usr/local/bin/mc \
     && chmod +x /usr/local/bin/mc