2022-07-21 17:17:53 +02:00
|
|
|
FROM alpine:3.16
|
2023-09-04 18:24:13 +02:00
|
|
|
ARG TARGETARCH
|
2022-07-21 17:17:53 +02:00
|
|
|
RUN apk add --update bash openvpn easy-rsa iptables && \
|
2020-10-29 12:50:19 +02:00
|
|
|
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
|
2023-09-04 18:24:13 +02:00
|
|
|
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 12:50:19 +02:00
|
|
|
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
|
2023-09-04 18:24:13 +02:00
|
|
|
RUN if [ -f "/usr/local/bin/openvpn-user-${TARGETARCH}" ]; then ln -s /usr/local/bin/openvpn-user-${TARGETARCH} /usr/local/bin/openvpn-user; fi
|
2021-02-20 14:48:41 +02:00
|
|
|
COPY setup/ /etc/openvpn/setup
|
2023-09-04 18:24:13 +02:00
|
|
|
RUN chmod +x /etc/openvpn/setup/configure.sh
|