Spaces:
Sleeping
Sleeping
Fix directory permissions for watermarked_images
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -4,6 +4,9 @@ FROM python:3.10-slim
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
|
|
|
|
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Ensure the necessary directories exist and set proper permissions
|
8 |
+
RUN mkdir -p /app/static/watermarked_images && chmod -R 777 /app/static/watermarked_images
|
9 |
+
|
10 |
# Copy the current directory contents into the container at /app
|
11 |
COPY . /app
|
12 |
|