diff --git a/docker/Dockerfile b/docker/Dockerfile index 1ad1cd3..f8008f6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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" diff --git a/docker/README.md b/docker/README.md index aaf0bbb..65402ec 100644 --- a/docker/README.md +++ b/docker/README.md @@ -26,8 +26,8 @@ docker run -d \ -v /path/to/zoraxy/config/:/opt/zoraxy/config/ \ -v /path/to/zoraxy/plugin/:/opt/zoraxy/plugin/ \ -v /var/run/docker.sock:/var/run/docker.sock \ - -v /etc/localtime:/etc/localtime \ -e FASTGEOIP="true" \ + -e TZ="America/New_York" \ zoraxydocker/zoraxy:latest ``` @@ -47,11 +47,11 @@ services: - /path/to/zoraxy/config/:/opt/zoraxy/config/ - /path/to/zoraxy/plugin/:/opt/zoraxy/plugin/ - /var/run/docker.sock:/var/run/docker.sock - - /etc/localtime:/etc/localtime extra_hosts: - "host.docker.internal:host-gateway" environment: FASTGEOIP: "true" + TZ: "Europe/London" ``` ### Ports @@ -95,6 +95,7 @@ Variables are the same as those in [Start Parameters](https://github.com/tobychu | `PLUGIN` | `/opt/zoraxy/plugin/` (String) | Set the path for Zoraxy plugins. Only change this if you know what you are doing. | | `PORT` | `8000` (Integer) | Management web interface listening port | | `SSHLB` | `false` (Boolean) | Allow loopback web ssh connection (DANGER). | +| `TZ` | `Etc/UTC` (String) | Define timezone using [standard tzdata values](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). | | `UPDATE_GEOIP` | `false` (Boolean) | Download the latest GeoIP data and exit. | | `VERSION` | `false` (Boolean) | Show version of this server. | | `WEBFM` | `true` (Boolean) | Enable web file manager for static web server root folder. |