Dockerfile.openvpn
use git to pull setup directly in container to avoid line ending bugs on windows
This commit is contained in:
parent
f4d0212bfc
commit
8740d2420b
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue