From e4af235ce980645729cbb67889cb16fe9fe624c6 Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 23 Apr 2020 18:12:44 -0400 Subject: [PATCH] Move chmod to `copy` image, make the final image smaller --- .github/workflows/pipeline.dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.dockerfile b/.github/workflows/pipeline.dockerfile index d67e54fe9..54ef547cc 100644 --- a/.github/workflows/pipeline.dockerfile +++ b/.github/workflows/pipeline.dockerfile @@ -10,6 +10,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then cp navidrome_linux_musl_amd6 RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then cp navidrome_linux_arm64_linux_arm64/navidrome /navidrome; fi RUN if [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then cp navidrome_linux_arm_linux_arm_6/navidrome /navidrome; fi RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then cp navidrome_linux_arm_linux_arm_7/navidrome /navidrome; fi +RUN chmod +x /navidrome ##################################################### @@ -22,7 +23,6 @@ RUN apk add --no-cache ffmpeg RUN ffmpeg -buildconf COPY --from=copy-binary /navidrome /app/ -RUN chmod +x /app/navidrome VOLUME ["/data", "/music"] ENV ND_MUSICFOLDER /music