Browse Source

Merge pull request #567 from vizv/fix-dockerfile

Update docker related files.
pull/574/head
Max Lv 8 years ago
parent
commit
86aeb31229
3 changed files with 5 additions and 2 deletions
  1. 3
      docker/alpine/Dockerfile
  2. 3
      docker/alpine/docker-compose.yml
  3. 1
      docker/ubuntu/Dockerfile

3
docker/alpine/Dockerfile

@ -5,7 +5,7 @@
FROM alpine
MAINTAINER kev <noreply@datageek.info>
ENV SS_VER 2.4.4
ENV SS_VER 2.4.5
ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev/archive/v$SS_VER.tar.gz
ENV SS_DIR shadowsocks-libev-$SS_VER
ENV SS_DEP autoconf build-base curl libtool linux-headers openssl-dev
@ -29,6 +29,7 @@ ENV TIMEOUT 300
ENV DNS_ADDR 8.8.8.8
EXPOSE $SERVER_PORT
EXPOSE $SERVER_PORT/udp
CMD ss-server -s $SERVER_ADDR \
-p $SERVER_PORT \

3
docker/alpine/docker-compose.yml

@ -1,7 +1,8 @@
shadowsocks:
image: shadowsocks-libev
ports:
- "8388:8388"
- "8388:8388/tcp"
- "8388:8388/udp"
environment:
- METHOD=aes-256-cfb
- PASSWORD=9MLSpPmNt

1
docker/ubuntu/Dockerfile

@ -24,6 +24,7 @@ RUN rm -rf $BASEDIR/shadowsocks-libev\
# Port in the config file won't take affect. Instead we'll use 8388.
EXPOSE $PORT
EXPOSE $SERVER_PORT/udp
# Override the host and port in the config file.
ADD entrypoint /

Loading…
Cancel
Save