Dockerfile 362 B

1234567891011
  1. FROM docker.io/alpine:3.18.0
  2. # https://github.com/OpenVPN/openvpn/blob/master/Changes.rst
  3. # https://git.alpinelinux.org/aports/log/main/openvpn?h=3.18-stable
  4. ARG OPENVPN_PACKAGE_VERSION=2.6.5-r0
  5. RUN apk add --no-cache openvpn=$OPENVPN_PACKAGE_VERSION
  6. VOLUME /vpn-config
  7. ENV OPENVPN_CONFIG_PATH=/vpn-config/hackthebox.ovpn
  8. COPY ./vpn.sh /vpn.sh
  9. CMD ["/vpn.sh"]