mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 15:16:58 +00:00
Merge pull request #2666 from imMMX/add-dockerfile-timezone
Add Dockerfile timezone, Update readme.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user