diff --git a/shadowvpn/Dockerfile b/shadowvpn/Dockerfile index ec4607c..de341af 100644 --- a/shadowvpn/Dockerfile +++ b/shadowvpn/Dockerfile @@ -5,14 +5,28 @@ FROM debian:jessie MAINTAINER kev -WORKDIR / -RUN apt-get update -RUN apt-get install -y build-essential automake libtool debhelper gawk git -RUN git clone --recursive https://github.com/clowwindy/ShadowVPN.git +RUN apt-get update \ + && apt-get install -y automake \ + build-essential \ + gawk \ + git \ + ifconfig \ + iptables \ + libtool \ + && git clone --recursive https://github.com/clowwindy/ShadowVPN.git \ + && cd ShadowVPN \ + && ./autogen.sh \ + && ./configure --enable-static --sysconfdir=/etc \ + && make install \ + && cd .. \ + && rm -rf ShadowVPN \ + && apt-get purge -y --auto-remove automake \ + build-essential \ + gawk \ + git \ + libtool -WORKDIR /ShadowVPN -RUN ./autogen.sh -RUN ./configure --enable-static --sysconfdir=/etc -RUN make install +VOLUME /etc/shadowvpn + +CMD shadowvpn -c /etc/shadowvpn/server.conf -CMD ["/bin/bash"]