diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index 9f84df13..f578e1b2 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -11,6 +11,7 @@ ENV PASSWORD= ENV METHOD aes-256-gcm ENV TIMEOUT 300 ENV DNS_ADDRS 8.8.8.8,8.8.4.4 +ENV TZ Asia/Shanghai ENV ARGS= COPY . /tmp/repo @@ -39,6 +40,7 @@ RUN set -ex \ && apk add --no-cache \ ca-certificates \ rng-tools \ + tzdata \ $(scanelf --needed --nobanner /usr/bin/ss-* \ | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | sort -u) \ diff --git a/docker/alpine/README.md b/docker/alpine/README.md index 98484690..e5a4ff1f 100644 --- a/docker/alpine/README.md +++ b/docker/alpine/README.md @@ -63,6 +63,7 @@ Besides `PASSWORD`, the image also defines the following environment variables t * `METHOD`: encryption method to use, defaults to `aes-256-gcm` * `TIMEOUT`: defaults to `300` * `DNS_ADDRS`: DNS servers to redirect NS lookup requests to, defaults to `8.8.8.8,8.8.4.4` +* `TZ`: Timezone, defaults to `Asia/Shanghai` Additional arguments supported by `ss-server` can be passed with the environment variable `ARGS`, for instance to start in verbose mode: ```bash