forked from bubuntux/nordvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (25 loc) · 1.06 KB
/
Dockerfile
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
FROM ubuntu:18.04
LABEL maintainer="Julio Gutierrez"
ARG NORDVPN_VERSION=3.10.0-1
RUN apt-get update -y && \
apt-get install -y curl iputils-ping tzdata && \
curl https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/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/* && \
echo '#!/bin/bash\nservice nordvpn start\nsleep 1\nnordvpn countries' > /usr/bin/countries && \
echo '#!/bin/bash\nservice nordvpn start\nsleep 1\nnordvpn cities $1' > /usr/bin/cities && \
echo '#!/bin/bash\nservice nordvpn start\nsleep 1\nnordvpn groups' > /usr/bin/n_groups && \
chmod +x /usr/bin/countries && \
chmod +x /usr/bin/cities && \
chmod +x /usr/bin/n_groups
CMD /usr/bin/start_vpn.sh
COPY start_vpn.sh /usr/bin