Browse Source

Add Dockerfile timezone, Update readme.

pull/2666/head
mmx 5 years ago
parent
commit
b6ddbbe0b0
2 changed files with 3 additions and 0 deletions
  1. 2
      docker/alpine/Dockerfile
  2. 1
      docker/alpine/README.md

2
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) \

1
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

Loading…
Cancel
Save