This repository was archived by the owner on Aug 16, 2026. It is now read-only.
forked from dperson/openvpn-client
-
-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 1.22 KB
/
Copy pathDockerfile
File metadata and controls
31 lines (26 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ghcr.io/linuxserver/baseimage-ubuntu:noble
LABEL maintainer="Julio Gutierrez julio.guti+nordvpn@pm.me"
ARG NORDVPN_VERSION=4.1.1
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && \
apt-get install -y curl iputils-ping libc6 wireguard && \
curl https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/n/nordvpn-release/nordvpn-release_1.0.0_all.deb --output /tmp/nordrepo.deb && \
apt-get install -y /tmp/nordrepo.deb && \
apt-get update -y && \
apt-get install -y nordvpn${NORDVPN_VERSION:+=$NORDVPN_VERSION} && \
apt-get remove -y nordvpn-release && \
apt-get autoremove -y && \
apt-get autoclean -y && \
rm -rf \
/tmp/* \
/var/cache/apt/archives/* \
/var/lib/apt/lists/* \
/var/tmp/*
COPY /rootfs /
RUN chmod +x /etc/cont-init.d/* /etc/services.d/nordvpn/* \
/usr/bin/dockerNetworks /usr/bin/dockerNetworks6 /usr/bin/nord_config /usr/bin/nord_connect /usr/bin/nord_login /usr/bin/nord_migrate /usr/bin/nord_watch \
/etc/services.d/nordvpn/data/check /usr/bin/healthcheck
HEALTHCHECK --interval=60s --timeout=15s --start-period=120s \
CMD /usr/bin/healthcheck
ENV S6_CMD_WAIT_FOR_SERVICES=1
CMD nord_login && nord_config && nord_connect && nord_migrate && nord_watch