Skip to content

Commit c17ca87

Browse files
committed
fix: ensure config and data directories exist with proper permissions in Docker container
- Create /usr/src/app/config and /usr/src/app/data directories before setting ownership - Fixes permission issues when saving configuration via web UI - Resolves issue #109 where appuser cannot write to .env file in mounted config volume
1 parent f9bfcb6 commit c17ca87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ COPY --from=builder /usr/src/app/package.json ./
4343
# Optionally copy other root files if needed by the application (e.g., .env.example, README)
4444
# COPY --from=builder /usr/src/app/.env.example ./
4545

46+
# Create config directory for persistent volume mount and data directory
47+
RUN mkdir -p /usr/src/app/config /usr/src/app/data
48+
4649
# Ensure correct ownership of application files
4750
# Use /usr/src/app to cover everything copied
4851
RUN chown -R appuser:appgroup /usr/src/app

0 commit comments

Comments
 (0)