From 6c2a7e76b7b6779ccc501dd2608e1f6fc78d4756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Menke?= Date: Fri, 15 Jan 2021 21:22:25 +0100 Subject: [PATCH] fix warning for missing tzinfo in Docker image --- CHANGELOG.md | 2 ++ Dockerfile.release | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8099791f..bfd8d7198 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## Unreleased - fix: smtp server_hostname cannot be an empty [#227](https://github.com/icloud-photos-downloader/icloud_photos_downloader/issues/227) +- fix: Warning for missing `tzinfo` in Docker image removed by adding `tzinfo`-package. +[#286](https://github.com/icloud-photos-downloader/icloud_photos_downloader/pull/286) ## 1.7.1 (2020-11-15) diff --git a/Dockerfile.release b/Dockerfile.release index 5d6415406..e53a1d99f 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -1,7 +1,7 @@ FROM alpine:latest RUN set -xe && \ - apk add --no-cache python3 && \ + apk add --no-cache python3 tzdata && \ python3 -m ensurepip && \ rm -r /usr/lib/python*/ensurepip && \ pip3 install --upgrade pip setuptools && \ @@ -9,6 +9,8 @@ RUN set -xe && \ if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \ rm -r /root/.cache +RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime + ARG ICLOUDPD_VERSION COPY dist/* /tmp RUN set -xe \