Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -13,6 +13,12 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 13 |
# Copy the rest of the application files
|
| 14 |
COPY . .
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
# Expose the port your app runs on
|
| 17 |
EXPOSE 7860
|
| 18 |
|
|
|
|
| 13 |
# Copy the rest of the application files
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
+
# Create the uploads directory and set correct permissions
|
| 17 |
+
RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads
|
| 18 |
+
|
| 19 |
+
# Ensure the application user has permissions to write in the working directory
|
| 20 |
+
RUN chmod -R 777 /app
|
| 21 |
+
|
| 22 |
# Expose the port your app runs on
|
| 23 |
EXPOSE 7860
|
| 24 |
|