forked from yaronr/docker-softether
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (20 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SoftEther VPN server
FROM debian:8
MAINTAINER Rural Telecom <[email protected]>
ENV VERSION v4.15-9546-beta-2015.04.05
WORKDIR /usr/local/vpnserver
RUN apt-get update &&\
apt-get -y -q install gcc make wget && \
apt-get clean && \
rm -rf /var/cache/apt/* /var/lib/apt/lists/* && \
wget http://www.softether-download.com/files/softether/${VERSION}-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-${VERSION}-linux-x64-64bit.tar.gz -O /tmp/softether-vpnserver.tar.gz &&\
tar -xzvf /tmp/softether-vpnserver.tar.gz -C /usr/local/ &&\
rm /tmp/softether-vpnserver.tar.gz &&\
make i_read_and_agree_the_license_agreement &&\
apt-get purge -y -q --auto-remove gcc make wget
ADD runner.sh /usr/local/vpnserver/runner.sh
RUN chmod 755 /usr/local/vpnserver/runner.sh
RUN touch /usr/local/vpnserver/vpn_server.config
RUN chmod 755 /usr/local/vpnserver/vpn_server.config
EXPOSE 80/tcp 53/tcp 443/tcp 992/tcp 1194/tcp 1194/udp 5555/tcp 8080/tcp 500/udp 4500/udp
ENTRYPOINT ["/usr/local/vpnserver/runner.sh"]