NordVPN_Get-WireGuard-Config/build/Dockerfile
lluked 3aa73f4ad7
Updates (#2)
* Update NordVPN version

* Update error handling
2023-12-17 13:06:32 +00:00

23 lines
724 B
Docker

FROM ubuntu:22.04
ARG NORDVPN_VERSION=${NORDVPN_VERSION:-3.16.9}
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
curl \
jq \
iputils-ping \
wireguard-tools && \
curl https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb -o "/tmp/nordrepo.deb" && \
apt-get install -y /tmp/nordrepo.deb && \
apt-get update && \
apt-get install -y nordvpn=${NORDVPN_VERSION} && \
apt-get remove -y nordvpn-release && \
rm /tmp/nordrepo.deb && \
apt-get clean
COPY get_wireguard_config.sh ./get_wireguard_config.sh
ENTRYPOINT /etc/init.d/nordvpn start && sleep 5 && /bin/bash -c "$@"
CMD ./get_wireguard_config.sh