Skip to content

Commit

Permalink
Fix(Dockerfile): Set Permissions for Mounted Directories
Browse files Browse the repository at this point in the history
  • Loading branch information
WillKirkmanM committed Oct 14, 2024
1 parent c194153 commit c18a800
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c18a800

Please sign in to comment.