Skip to content

Commit

Permalink
-silent build
Browse files Browse the repository at this point in the history
-extra cleanup
  • Loading branch information
Julio Gutierrez committed Dec 13, 2020
1 parent 3db5c8d commit bfe63ec
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ HEALTHCHECK --interval=5m --timeout=20s --start-period=1m \
CMD if test $( curl -m 10 -s https://api.nordvpn.com/vpn/check/full | jq -r '.["status"]' ) = "Protected" ; then exit 0; else nordvpn connect ${CONNECT} ; exit $?; fi

RUN addgroup --system vpn && \
apt update && \
apt install -y curl jq && \
curl https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb --output /tmp/nordrepo.deb && \
apt install -y /tmp/nordrepo.deb && \
apt update && \
apt install -y nordvpn${NORDVPN_VERSION:+=$NORDVPN_VERSION} && \
apt remove -y nordvpn-release && \
apt-get update -yqq && \
apt-get install -yqq curl jq && \
curl -s https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb --output /tmp/nordrepo.deb && \
apt-get install -yqq /tmp/nordrepo.deb && \
apt-get update -yqq && \
apt-get install -yqq nordvpn${NORDVPN_VERSION:+=$NORDVPN_VERSION} && \
apt-get remove -yqq nordvpn-release && \
apt-get autoremove -yqq && \
apt-get autoclean -yqq && \
rm -rf \
/tmp/* \
/var/cache/apt/archives/* \
Expand Down

0 comments on commit bfe63ec

Please sign in to comment.