Skip to content

Commit

Permalink
Add ARGS env variable to alpine Dockerfile (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
wacky6 authored and madeye committed Jun 21, 2017
1 parent babc9c4 commit 42ce345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -58,4 +59,5 @@ CMD ss-server -s $SERVER_ADDR \
--fast-open \
-d $DNS_ADDR \
-d $DNS_ADDR_2 \
-u
-u \
$ARGS
1 change: 1 addition & 0 deletions docker/alpine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 42ce345

Please sign in to comment.