diff --git a/docker/ubuntu/Dockerfile b/docker/ubuntu/Dockerfile index e7a03011..2391cddd 100644 --- a/docker/ubuntu/Dockerfile +++ b/docker/ubuntu/Dockerfile @@ -4,7 +4,7 @@ MAINTAINER Sah Lee ENV DEPENDENCIES git-core build-essential autoconf libtool libssl-dev ENV BASEDIR /tmp/shadowsocks-libev -ENV PORT 8338 +ENV SERVER_PORT 8338 # Set up building environment RUN apt-get update \ @@ -23,7 +23,7 @@ RUN rm -rf $BASEDIR/shadowsocks-libev\ && apt-get --purge autoremove -y $DEPENDENCIES # Port in the config file won't take affect. Instead we'll use 8388. -EXPOSE $PORT +EXPOSE $SERVER_PORT EXPOSE $SERVER_PORT/udp # Override the host and port in the config file.