Spaces:
Sleeping
Sleeping
fix: update Dockerfile to fix permissions for watermarked images directory
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -4,12 +4,13 @@ FROM python:3.10-slim
|
|
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 |
|
|
|
|
|
|
|
|
|
13 |
# Install the dependencies
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
|
|
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 |
|
10 |
+
# Create the directory and set permissions
|
11 |
+
RUN mkdir -p /app/static/watermarked_images && \
|
12 |
+
chmod 777 /app/static/watermarked_images
|
13 |
+
|
14 |
# Install the dependencies
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|