aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit7a5ea73de20077451652bd1550efab071b2c903d (patch)
tree2a349c34cb0312e285d168f82e2dd19f5e8b8e05
parentuse gosu and usermod to ensure data permissions (diff)
downloadmetube-7a5ea73de20077451652bd1550efab071b2c903d.tar.gz
metube-7a5ea73de20077451652bd1550efab071b2c903d.tar.bz2
metube-7a5ea73de20077451652bd1550efab071b2c903d.zip
add default timezone env parameter
-rw-r--r--Dockerfile1
-rw-r--r--docker-entrypoint.sh2
2 files changed, 2 insertions, 1 deletions
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
bgstack15