From bfe63ec478a34b3e0f9bdd459cd0cbcc32e6d781 Mon Sep 17 00:00:00 2001 From: Julio Gutierrez Date: Sun, 13 Dec 2020 03:20:23 -0600 Subject: [PATCH] -silent build -extra cleanup --- Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8d973d04b19..48bce03416a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/* \