2
0
openvpn-ldap-testbed/Dockerfile.server
2023-10-04 00:36:16 +02:00

14 lines
815 B
Docker

FROM alpine
RUN apk update && apk add --no-cache bash openvpn openvpn-auth-ldap
RUN mkdir -p /etc/openvpn/server/server.example.test/ccd
ADD vpnca/pki/ca.crt /etc/openvpn/server/server.example.test
ADD vpnca/pki/issued/server.example.test.crt /etc/openvpn/server/server.example.test
ADD vpnca/pki/private/server.example.test.key /etc/openvpn/server/server.example.test
ADD vpnca/pki/dh.pem /etc/openvpn/server/server.example.test
RUN chmod 600 /etc/openvpn/server/server.example.test/server.example.test.key
ADD openvpn/server.example.test.conf /etc/openvpn/server/server.example.test.conf
ADD openvpn/server.example.test/ccd /etc/openvpn/server/server.example.test/ccd
ADD scripts/server.example.test/usr/sbin/entrypoint.sh /usr/sbin/entrypoint.sh
RUN chmod 755 /usr/sbin/entrypoint.sh
CMD /usr/sbin/entrypoint.sh