-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (31 loc) · 1.46 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
33
34
35
36
37
FROM ubuntu:16.04
MAINTAINER Jogendra Kumar <[email protected]>
RUN 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 iptables \
&& apt-get clean \
&& apt-get -y -q autoclean \
&& apt-get -y -q autoremove \
&& rm -rf /tmp/*
#Prevent connections issues
RUN sh -c 'echo "* hard nofile 64000" >> /etc/security/limits.conf'
RUN sh -c 'echo "* soft nofile 64000" >> /etc/security/limits.conf'
RUN sh -c 'echo "root hard nofile 64000" >> /etc/security/limits.conf'
RUN sh -c 'echo "root soft nofile 64000" >> /etc/security/limits.conf'
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"]