-
Notifications
You must be signed in to change notification settings - Fork 41
/
Dockerfile
30 lines (23 loc) · 888 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
29
30
FROM ubuntu:22.04
# We want to use the latest available packages
# hadolint ignore=DL3008
RUN addgroup --gid 101 openvpn \
&& useradd -d /var/lib/ldap/ -g openvpn -m -u 101 openvpn \
&& apt-get update -q \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
dnsmasq \
openvpn \
openvpn-auth-ldap \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY --chown=openvpn cert/pki/ca.crt /etc/openvpn/server/ca.crt
COPY --chown=openvpn cert/pki/crl.pem /etc/openvpn/server/crl.pem
COPY --chown=openvpn cert/ccd /home/openvpn/available-ccds
COPY docker/config/server.conf /etc/openvpn/server/server.conf
COPY docker/config/auth-ldap.conf /etc/openvpn/server/auth-ldap.conf
COPY docker/entrypoint.sh /entrypoint.sh
LABEL io.jenkins-infra.tools="curl,dnsmasq,openvpn"
EXPOSE 443
ENTRYPOINT ["bash", "/entrypoint.sh" ]