2022-07-21 11:17:53 -04:00
|
|
|
FROM alpine:3.16
|
2023-06-01 18:13:07 -04:00
|
|
|
RUN apk add --update bash openvpn easy-rsa iptables git && \
|
2020-10-29 06:50:19 -04:00
|
|
|
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
|
2022-07-21 11:17:53 -04:00
|
|
|
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 && \
|
2020-10-29 06:50:19 -04:00
|
|
|
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
|
2023-06-01 18:13:07 -04:00
|
|
|
RUN git clone https://github.com/flant/ovpn-admin.git /tmp/ovpn-admin
|
|
|
|
RUN cp -r /tmp/ovpn-admin/setup /etc/openvpn/setup
|
|
|
|
|
2020-10-29 06:50:19 -04:00
|
|
|
RUN chmod +x /etc/openvpn/setup/configure.sh
|