فهرست منبع

Adding tzdata to container

To be able to set a timezone inside a container with the env variable TZ
the tzdata package is needed. Otherwise only UTC will be set.
Marco 4 سال پیش
والد
کامیت
f6bd8b3462
3فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 1 0
      docker/Dockerfile.j2
  2. 1 0
      docker/amd64/Dockerfile.alpine
  3. 1 0
      docker/armv7/Dockerfile.alpine

+ 1 - 0
docker/Dockerfile.j2

@@ -212,6 +212,7 @@ RUN mkdir /data \
 {% if "alpine" in runtime_stage_base_image %}
     && apk add --no-cache \
         openssl \
+        tzdata \
         curl \
         dumb-init \
 {%   if "mysql" in features %}

+ 1 - 0
docker/amd64/Dockerfile.alpine

@@ -82,6 +82,7 @@ ENV SSL_CERT_DIR=/etc/ssl/certs
 RUN mkdir /data \
     && apk add --no-cache \
         openssl \
+        tzdata \
         curl \
         dumb-init \
         postgresql-libs \

+ 1 - 0
docker/armv7/Dockerfile.alpine

@@ -88,6 +88,7 @@ RUN [ "cross-build-start" ]
 RUN mkdir /data \
     && apk add --no-cache \
         openssl \
+        tzdata \
         curl \
         dumb-init \
         ca-certificates