From 7ad2130eaac8ec50a211f9d0aa44f2f9bdb3d121 Mon Sep 17 00:00:00 2001 From: Sah Date: Sun, 4 Jan 2015 11:06:42 +0800 Subject: [PATCH] Update Dockerfile --- docker/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index aa9c021..70457f0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:latest MAINTAINER Sah Lee -ENV BASEDIR / +ENV BASEDIR /tmp # Install dependencies RUN apt-get update @@ -25,12 +25,13 @@ RUN apt-get --purge autoremove -y git-core python-setuptools RUN rm -rf $BASEDIR/shadowsocks # Config file can be in a separated container -ENV CONF /etc/shadowsocks.json -VOLUME ["$CONF"] +ENV CONFIG_DIR /etc/shadowsocks +ENV CONFIG_FILE $CONFIG_DIR/shadowsocks.json +VOLUME ["$CONFIG_DIR"] # Port in the config file won't take affect. Instead we'll use 8388. ENV PORT 8388 EXPOSE $PORT # Override the host and port in the config file. -CMD ssserver --fast-open -c $CONF -s 0.0.0.0 -p $PORT +CMD ssserver --fast-open -c $CONFIG_FILE -s 0.0.0.0 -p $PORT