Move chmod to `copy` image, make the final image smaller

This commit is contained in:
Deluan 2020-04-23 18:12:44 -04:00 committed by Deluan Quintão
parent 00384a60f3
commit e4af235ce9
1 changed files with 1 additions and 1 deletions

View File

@ -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