From c18a800e7a3c29aabf8cb2d529714802286af143 Mon Sep 17 00:00:00 2001 From: WillKirkmanM Date: Mon, 14 Oct 2024 14:49:17 +0100 Subject: [PATCH] Fix(Dockerfile): Set Permissions for Mounted Directories --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 740cb039..7e9d3e4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,7 +75,10 @@ RUN adduser --system --uid 1001 --ingroup nodejs nextjs # Change ownership of the /app directory to the nextjs user RUN chown -R nextjs:nodejs /app -RUN mkdir -p /ParsonLabsMusic /music && chown -R nextjs:nodejs /ParsonLabsMusic /music +# Create and set permissions for the directories +RUN mkdir -p /ParsonLabsMusic /music && \ + chown -R nextjs:nodejs /ParsonLabsMusic /music && \ + chmod -R 755 /ParsonLabsMusic /music USER nextjs COPY --from=backend-builder --chown=nextjs:nodejs /usr/src/crates/backend/target/release/music-server /usr/local/bin/music-server