1
0
Fork 0
mirror of synced 2024-12-19 12:41:10 -05:00

Dockerfile.openvpn

use git to pull setup directly in container to avoid line ending bugs on windows
This commit is contained in:
lastlink 2023-06-01 18:13:07 -04:00 committed by GitHub
parent f4d0212bfc
commit 8740d2420b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,9 @@
FROM alpine:3.16
RUN apk add --update bash openvpn easy-rsa iptables && \
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/*
COPY setup/ /etc/openvpn/setup
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