1
0
Fork 0
mirror of synced 2024-11-13 20:58:58 -05:00
ovpn-admin/Dockerfile.openvpn
lastlink 8740d2420b
Dockerfile.openvpn
use git to pull setup directly in container to avoid line ending bugs on windows
2023-06-01 18:13:07 -04:00

9 lines
518 B
Docker

FROM alpine:3.16
RUN apk add --update bash openvpn easy-rsa iptables git && \
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-amd64.tar.gz -O - | tar xz -C /usr/local/bin && \
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
RUN git clone https://github.com/flant/ovpn-admin.git /tmp/ovpn-admin
RUN cp -r /tmp/ovpn-admin/setup /etc/openvpn/setup
RUN chmod +x /etc/openvpn/setup/configure.sh