Add timezone environment variable to Dockerfile

Add tzdata and set the timezone in the Dockerfile.
This commit is contained in:
DeusMaximus
2025-11-16 00:38:49 +10:00
committed by GitHub
parent 0657c2b8ce
commit 048dc12eb0

View File

@@ -37,7 +37,7 @@ RUN curl -Lo ZeroTierOne.tar.gz https://codeload.github.com/zerotier/ZeroTierOne
## Main
FROM docker.io/alpine:latest
RUN apk add --update --no-cache python3 sudo netcat-openbsd libressl-dev openssh ca-certificates libc6-compat libstdc++ &&\
RUN apk add --update --no-cache tzdata python3 sudo netcat-openbsd libressl-dev openssh ca-certificates libc6-compat libstdc++ &&\
rm -rf /var/cache/apk/* /tmp/*
COPY --chmod=700 ./entrypoint.py /opt/zoraxy/
@@ -50,6 +50,7 @@ RUN mkdir -p /opt/zoraxy/plugin/ &&\
WORKDIR /opt/zoraxy/config/
ENV TZ="Etc/UTC"
ENV ZEROTIER="false"
ENV AUTORENEW="86400"