forked from jippi/docker-pritunl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (27 loc) · 1.3 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
28
29
30
31
32
FROM ubuntu:16.04
MAINTAINER Christian Winther <[email protected]>
RUN echo 'deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse' > /etc/apt/sources.list.d/mongodb-org-3.2.list \
&& echo 'deb http://repo.pritunl.com/stable/apt xenial main' > /etc/apt/sources.list.d/pritunl.list \
&& echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 42F3E95A2C4F08279C4960ADD68FA50FEA312927 \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 8E6DA8B4E158C569 \
&& apt-get update -q \
&& apt-get install locales \
&& locale-gen en_US en_US.UTF-8 \
&& dpkg-reconfigure locales \
&& ln -sf /usr/share/zoneinfo/UTC /etc/localtime \
&& apt-get upgrade -y -q \
&& apt-get dist-upgrade -y -q \
&& apt-get -y install pritunl mongodb-org iptables \
&& apt-get clean \
&& apt-get -y -q autoclean \
&& apt-get -y -q autoremove \
&& rm -rf /tmp/*
ADD start-pritunl /bin/start-pritunl
EXPOSE 80
EXPOSE 443
EXPOSE 1194
EXPOSE 1194/udp
ENTRYPOINT ["/bin/start-pritunl"]
CMD ["/usr/bin/tail", "-f","/var/log/pritunl.log"]