1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 05:48:42 +00:00

update ShadowVPN

This commit is contained in:
kev 2015-08-07 15:01:34 +08:00
parent e5da6317a8
commit 4cbf4617ed
3 changed files with 60 additions and 22 deletions

@ -2,17 +2,16 @@
# Dockerfile for ShadowVPN
#
FROM debian:jessie
FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \
&& apt-get install -y automake \
build-essential \
gawk \
git \
net-tools \
iptables \
libtool \
RUN apk add -U autoconf \
automake \
build-base \
gawk \
git \
iptables \
libtool \
&& git clone --recursive https://github.com/clowwindy/ShadowVPN.git \
&& cd ShadowVPN \
&& ./autogen.sh \
@ -20,14 +19,13 @@ RUN apt-get update \
&& make install \
&& cd .. \
&& rm -rf ShadowVPN \
&& apt-get purge -y --auto-remove automake \
build-essential \
gawk \
git \
libtool
&& apk del autoconf \
automake \
build-base \
gawk \
git \
libtool
EXPOSE 1123/udp
VOLUME /etc/shadowvpn
CMD shadowvpn -c /etc/shadowvpn/server.conf

@ -0,0 +1,33 @@
#
# Dockerfile for ShadowVPN
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \
&& apt-get install -y automake \
build-essential \
gawk \
git \
net-tools \
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
EXPOSE 1123/udp
VOLUME /etc/shadowvpn
CMD shadowvpn -c /etc/shadowvpn/server.conf

@ -1,17 +1,20 @@
ShadowVPN
=========
![](https://badge.imagelayers.io/vimagick/shadowvpn:latest.svg)
[`ShadowVPN`][1] is a fast, safe VPN based on libsodium.
## directory tree
```
~/fig/shadowvpn/
.
├── docker-compose.yml
└── shadowvpn/
├── server.conf
├── server_down.sh
└── server_up.sh
└── server.conf
```
> Please change password in [server.conf][2] to protect your server.
## docker-compose.yml
```
@ -20,7 +23,7 @@ shadowvpn:
ports:
- "1123:1123/udp"
volumes:
- "shadowvpn:/etc/shadowvpn"
- "server.conf:/etc/shadowvpn/server.conf"
privileged: true
restart: always
```
@ -37,4 +40,8 @@ $ docker-compose up -d
$ shadowvpn -c /etc/shadowvpn/client.conf -v
```
> Change settings in [client.conf][3].
[1]: https://shadowvpn.org/
[2]: https://github.com/clowwindy/ShadowVPN/blob/master/samples/server.conf
[2]: https://github.com/clowwindy/ShadowVPN/blob/master/samples/client.conf