Skip to content

Commit

Permalink
improve dockerfile readability [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Mar 11, 2024
1 parent d2e8274 commit 4df5289
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion linux-amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
5 changes: 4 additions & 1 deletion linux-arm64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 4df5289

Please sign in to comment.