Skip to content

Commit

Permalink
Fix data dir permissions in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aahnik committed Dec 30, 2024
1 parent 3ea705e commit 54d6ddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ RUN useradd -m appuser && chown -R appuser:appuser /app

# Create data directory with correct permissions
RUN mkdir -p /data && \
chmod -R 777 /data && \
chown -R appuser:appuser /data

# USER appuser
USER appuser

# Add healthcheck
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
Expand Down

0 comments on commit 54d6ddb

Please sign in to comment.