1
0
Fork 0
mirror of synced 2024-11-19 07:15:36 -05:00
ovpn-admin/Dockerfile.openvpn

9 lines
662 B
Docker
Raw Normal View History

2024-08-25 21:25:25 -04:00
FROM alpine:3.20@sha256:0a4eaa0eecf5f8c050e5bba433f58c052be7587ee8af3e8b3910ef9ab5fbe9f5
ARG TARGETARCH
RUN apk add --update bash openvpn easy-rsa iptables && \
2020-10-29 06:50:19 -04:00
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-${TARGETARCH}.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/*
RUN if [ -f "/usr/local/bin/openvpn-user-${TARGETARCH}" ]; then ln -s /usr/local/bin/openvpn-user-${TARGETARCH} /usr/local/bin/openvpn-user; fi
COPY setup/ /etc/openvpn/setup
RUN chmod +x /etc/openvpn/setup/configure.sh