From 42ce34518d883310d0f8034116d4e924cccbbce0 Mon Sep 17 00:00:00 2001 From: Jiewei Qian Date: Wed, 21 Jun 2017 13:57:02 +0800 Subject: [PATCH] Add ARGS env variable to alpine Dockerfile (#1537) --- docker/alpine/Dockerfile | 4 +++- docker/alpine/README.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index 3e701cbb..9fe6a89a 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -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 diff --git a/docker/alpine/README.md b/docker/alpine/README.md index cb2d852f..25ba4efe 100644 --- a/docker/alpine/README.md +++ b/docker/alpine/README.md @@ -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)