1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-29 18:21:24 +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 FROM debian:jessie
MAINTAINER kev <noreply@datageek.info> MAINTAINER kev <noreply@datageek.info>
WORKDIR / RUN apt-get update \
RUN apt-get update && apt-get install -y automake \
RUN apt-get install -y build-essential automake libtool debhelper gawk git build-essential \
RUN git clone --recursive https://github.com/clowwindy/ShadowVPN.git 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 VOLUME /etc/shadowvpn
RUN ./autogen.sh
RUN ./configure --enable-static --sysconfdir=/etc CMD shadowvpn -c /etc/shadowvpn/server.conf
RUN make install
CMD ["/bin/bash"]