From 7a5ea73de20077451652bd1550efab071b2c903d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BE=BD=E5=85=88=E7=94=9F?= <8655163+VergilGao@users.noreply.github.com> Date: Sun, 29 May 2022 21:35:09 +0800 Subject: [PATCH] add default timezone env parameter --- Dockerfile | 1 + docker-entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 41ef1e3..034227b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,7 @@ COPY --from=gosu-builder /src/bin/ /bin ENV UID=99 ENV GID=100 ENV UMASK=002 +ENV TZ=Etc/UTC ENV DOWNLOAD_DIR /downloads ENV STATE_DIR /downloads/.metube diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 9cc00d1..f6347a2 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -16,4 +16,4 @@ mkdir -p ${DOWNLOAD_DIR} ${STATE_DIR} chown -R ${UID}:${GID} /app ${DOWNLOAD_DIR} ${STATE_DIR} -gosu ${USER} python3 app/main.py \ No newline at end of file +gosu ${USER} python3 app/main.py