Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -7,10 +7,13 @@ WORKDIR /app
|
|
7 |
# Copy project files to the container
|
8 |
COPY . /app
|
9 |
|
|
|
|
|
|
|
10 |
# Install dependencies
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
-
# Expose the
|
14 |
EXPOSE 7860
|
15 |
|
16 |
# Start the app using Gunicorn
|
|
|
7 |
# Copy project files to the container
|
8 |
COPY . /app
|
9 |
|
10 |
+
# Ensure the upload directory exists and set correct permissions
|
11 |
+
RUN mkdir -p static/uploads && chmod -R 777 static/uploads
|
12 |
+
|
13 |
# Install dependencies
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
+
# Expose the app port
|
17 |
EXPOSE 7860
|
18 |
|
19 |
# Start the app using Gunicorn
|