forked from johnae/pritunl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (28 loc) · 1.21 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:14.04
ENV TERM xterm
MAINTAINER John Axel Eriksson <[email protected]>
RUN locale-gen en_US en_US.UTF-8 &&\
dpkg-reconfigure locales &&\
ln -sf /usr/share/zoneinfo/UTC /etc/localtime &&\
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 42F3E95A2C4F08279C4960ADD68FA50FEA312927 &&\
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A &&\
echo "deb http://repo.pritunl.com/stable/apt trusty main" > /etc/apt/sources.list.d/pritunl.list &&\
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list &&\
mkdir /data/ &&\
mkdir /data/db/ &&\
apt-get update -q &&\
apt-get upgrade -y -q &&\
apt-get dist-upgrade -y -q &&\
apt-get install -y software-properties-common python-software-properties iptables &&\
apt-get update -q &&\
apt-get install -y pritunl mongodb-org &&\
apt-get clean &&\
apt-get -y -q autoclean &&\
apt-get -y -q autoremove &&\
rm -rf /tmp/*
ADD start-pritunl /bin/start-pritunl
EXPOSE 443
EXPOSE 1194
EXPOSE 11194
ENTRYPOINT ["/bin/start-pritunl"]
CMD ["/usr/bin/tail", "-f","/var/log/pritunl.log"]