FROM alpine RUN mkdir -p /dev/net && mknod /dev/net/tun c 10 200 && chmod 600 /dev/net/tun RUN apk update && apk add --no-cache bash openvpn RUN mkdir -p /etc/openvpn/client/client.example.test ADD vpnca/pki/ca.crt /etc/openvpn/client/client.example.test ADD vpnca/pki/issued/client.example.test.crt /etc/openvpn/client/client.example.test ADD vpnca/pki/private/client.example.test.key /etc/openvpn/client/client.example.test RUN chmod 600 /etc/openvpn/client/client.example.test/client.example.test.key ADD openvpn/client.example.test.conf /etc/openvpn/client/client.example.test.conf ADD scripts/client.example.test/usr/sbin/entrypoint.sh /usr/sbin/entrypoint.sh RUN chmod 755 /usr/sbin/entrypoint.sh CMD /usr/sbin/entrypoint.sh