diff options
author | 羽先生 <8655163+VergilGao@users.noreply.github.com> | 2022-05-29 21:35:09 +0800 |
---|---|---|
committer | 羽先生 <8655163+VergilGao@users.noreply.github.com> | 2022-05-29 21:35:09 +0800 |
commit | 7a5ea73de20077451652bd1550efab071b2c903d (patch) | |
tree | 2a349c34cb0312e285d168f82e2dd19f5e8b8e05 | |
parent | use gosu and usermod to ensure data permissions (diff) | |
download | metube-7a5ea73de20077451652bd1550efab071b2c903d.tar.gz metube-7a5ea73de20077451652bd1550efab071b2c903d.tar.bz2 metube-7a5ea73de20077451652bd1550efab071b2c903d.zip |
add default timezone env parameter
-rw-r--r-- | Dockerfile | 1 | ||||
-rw-r--r-- | docker-entrypoint.sh | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 |