Skip to content

Commit

Permalink
Move chmod to copy image, make the final image smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Apr 23, 2020
1 parent 00384a6 commit e4af235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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


#####################################################
Expand All @@ -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
Expand Down

0 comments on commit e4af235

Please sign in to comment.