Add ARGS env variable to alpine Dockerfile (#1537)

This commit is contained in:
Jiewei Qian
2017-06-21 00:57:02 -05:00
committed by Max Lv
parent babc9c4775
commit 42ce34518d
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -15,6 +15,7 @@ ENV METHOD aes-256-cfb
ENV TIMEOUT 300
ENV DNS_ADDR 8.8.8.8
ENV DNS_ADDR_2 8.8.4.4
ENV ARGS=
RUN set -ex && \
apk add --no-cache --virtual .build-deps \
@@ -58,4 +59,5 @@ CMD ss-server -s $SERVER_ADDR \
--fast-open \
-d $DNS_ADDR \
-d $DNS_ADDR_2 \
-u
-u \
$ARGS
+1
View File
@@ -32,6 +32,7 @@ $ docker ps
```
> :warning: Click [here][6] to generate a strong password to protect your server.
> You can use `ARGS` environment variable to pass additional arguments
## Use docker-compose to manage (optional)