forked from encryptme/private-end-points-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (20 loc) · 991 Bytes
/
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
FROM centos:7
RUN yum clean all && \
yum -y -q update && \
yum -y -q install epel-release && yum -y update && \
yum -y -q install cronie python-pip python34 python-devel python34-devel python34-pip git knot jq gcc bind-utils && \
yum -y -q install unbound openvpn strongswan kmod letsencrypt vim curl socat perl-JSON-PP.noarch && \
rm -rf /var/cache/yum
LABEL version=0.10
RUN echo "v0.10.1" > /container-version-id
ARG repo_branch=${repo_branch:-master}
RUN pip install --upgrade pip && \
pip install "git+https://github.com/encryptme/private-end-points.git@$repo_branch" jinja2 && \
ln -s /usr/sbin/strongswan /usr/sbin/ipsec
ARG repo_branch=${repo_branch:-master}
ADD https://github.com/encryptme/private-end-points-docker-stats/archive/$repo_branch.zip /tmp/encryptme-metrics.zip
RUN pip3 install /tmp/encryptme-metrics.zip && rm /tmp/encryptme-metrics.zip
ENV DISABLE_LETSENCRYPT 0
ARG build_time=${build_time:-x}
ADD files/ /
ENTRYPOINT ["/run.sh"]