Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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
|
37 |
-
chown -R appuser:appuser
|
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.
|