fix: reorder USER command in Dockerfile for proper permissions
This commit is contained in:
@@ -18,11 +18,12 @@ RUN uv sync --frozen --no-dev
|
|||||||
# Create non-root user for security
|
# Create non-root user for security
|
||||||
RUN useradd --create-home --shell /bin/bash app \
|
RUN useradd --create-home --shell /bin/bash app \
|
||||||
&& chown -R app:app /app
|
&& chown -R app:app /app
|
||||||
USER app
|
|
||||||
|
|
||||||
# Give read access to the store_creds volume
|
# Give read access to the store_creds volume
|
||||||
RUN chmod -R 755 /app/store_creds
|
RUN chmod -R 755 /app/store_creds
|
||||||
|
|
||||||
|
USER app
|
||||||
|
|
||||||
# Expose port (use default of 8000 if PORT not set)
|
# Expose port (use default of 8000 if PORT not set)
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
# Expose additional port if PORT environment variable is set to a different value
|
# Expose additional port if PORT environment variable is set to a different value
|
||||||
|
|||||||
Reference in New Issue
Block a user