8740d2420b
use git to pull setup directly in container to avoid line ending bugs on windows
9 lines
518 B
Docker
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
|