Browse Source
Merge pull request #2666 from imMMX/add-dockerfile-timezone
Add Dockerfile timezone, Update readme.
pull/2672/head
Max Lv
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
0 deletions
-
docker/alpine/Dockerfile
-
docker/alpine/README.md
|
|
@ -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 UTC |
|
|
|
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) \ |
|
|
|
|
|
@ -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 `UTC` |
|
|
|
|
|
|
|
Additional arguments supported by `ss-server` can be passed with the environment variable `ARGS`, for instance to start in verbose mode: |
|
|
|
```bash |
|
|
|