understanding commited on
Commit
bf23fb3
·
verified ·
1 Parent(s): 2881fd0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -33,8 +33,8 @@ RUN groupadd -g 1000 appuser && useradd --no-log-init -u 1000 -g appuser appuser
33
  # Then, set ownership of the entire /app directory (and its contents)
34
  # to the 'appuser'. This ensures the application, running as 'appuser',
35
  # has the necessary permissions, especially for /app/generated_images.
36
- RUN mkdir -p /app/templates /app/generated_images && \
37
- chown -R appuser:appuser /app
38
 
39
  # Copy the requirements file first to leverage Docker layer caching.
40
  # Ensure 'appuser' owns this copied file.
 
33
  # Then, set ownership of the entire /app directory (and its contents)
34
  # to the 'appuser'. This ensures the application, running as 'appuser',
35
  # has the necessary permissions, especially for /app/generated_images.
36
+ RUN mkdir -p ./app/templates ./app/generated_images && \
37
+ chown -R appuser:appuser ./app
38
 
39
  # Copy the requirements file first to leverage Docker layer caching.
40
  # Ensure 'appuser' owns this copied file.