From 4df52890d3fb75b11c0fbefa2679594fe5150e40 Mon Sep 17 00:00:00 2001 From: mrhotio <26902309+mrhotio@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:05:26 +0100 Subject: [PATCH] improve dockerfile readability [skip ci] --- linux-amd64.Dockerfile | 5 ++++- linux-arm64.Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/linux-amd64.Dockerfile b/linux-amd64.Dockerfile index 718794c66..afb0175c7 100644 --- a/linux-amd64.Dockerfile +++ b/linux-amd64.Dockerfile @@ -10,7 +10,10 @@ RUN apk add --no-cache python3 py3-lxml # install app ARG VERSION -RUN runfile="/tmp/app.run" && curl -fsSL -o "${runfile}" "https://github.com/nzbgetcom/nzbget/releases/download/v${VERSION}/nzbget-${VERSION}-bin-linux.run" && sh "${runfile}" --destdir "${APP_DIR}" && rm "${runfile}" && \ +RUN runfile="/tmp/app.run" && \ + curl -fsSL -o "${runfile}" "https://github.com/nzbgetcom/nzbget/releases/download/v${VERSION}/nzbget-${VERSION}-bin-linux.run" && \ + sh "${runfile}" --destdir "${APP_DIR}" && \ + rm "${runfile}" && \ curl -fsSL "https://curl.se/ca/cacert.pem" | sed '/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;' > "${APP_DIR}/cacert.pem" && \ chmod -R u=rwX,go=rX "${APP_DIR}" && \ chown -R root:root "${APP_DIR}" diff --git a/linux-arm64.Dockerfile b/linux-arm64.Dockerfile index 743780952..dd6f70b22 100644 --- a/linux-arm64.Dockerfile +++ b/linux-arm64.Dockerfile @@ -10,7 +10,10 @@ RUN apk add --no-cache python3 py3-lxml # install app ARG VERSION -RUN runfile="/tmp/app.run" && curl -fsSL -o "${runfile}" "https://github.com/nzbgetcom/nzbget/releases/download/v${VERSION}/nzbget-${VERSION}-bin-linux.run" && sh "${runfile}" --destdir "${APP_DIR}" && rm "${runfile}" && \ +RUN runfile="/tmp/app.run" && \ + curl -fsSL -o "${runfile}" "https://github.com/nzbgetcom/nzbget/releases/download/v${VERSION}/nzbget-${VERSION}-bin-linux.run" && \ + sh "${runfile}" --destdir "${APP_DIR}" && \ + rm "${runfile}" && \ curl -fsSL "https://curl.se/ca/cacert.pem" | sed '/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;' > "${APP_DIR}/cacert.pem" && \ chmod -R u=rwX,go=rX "${APP_DIR}" && \ chown -R root:root "${APP_DIR}"