1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00
This commit is contained in:
kev 2015-06-11 18:17:32 +08:00
parent 580b28848c
commit 375dda64ca

@ -5,14 +5,28 @@
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
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"]