Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -23,12 +23,16 @@ RUN mkdir -p /tmp/flask_sessions && chmod 777 /tmp/flask_sessions
|
|
| 23 |
# Create flask_sessions directory and set permissions
|
| 24 |
RUN mkdir -p /app/flask_sessions && chmod -R 777 /app/flask_sessions
|
| 25 |
|
|
|
|
|
|
|
|
|
|
| 26 |
# Copy the rest of the application code to /app
|
| 27 |
COPY . /app/
|
| 28 |
|
| 29 |
-
# Ensure the upload directory
|
| 30 |
RUN mkdir -p /app/uploads && \
|
| 31 |
-
chmod -R 777 /app/uploads
|
|
|
|
| 32 |
|
| 33 |
# Expose the port that the app runs on
|
| 34 |
EXPOSE 7860
|
|
|
|
| 23 |
# Create flask_sessions directory and set permissions
|
| 24 |
RUN mkdir -p /app/flask_sessions && chmod -R 777 /app/flask_sessions
|
| 25 |
|
| 26 |
+
# Create the app_error.log file and set write permissions
|
| 27 |
+
RUN touch /app/app_error.log && chmod 777 /app/app_error.log
|
| 28 |
+
|
| 29 |
# Copy the rest of the application code to /app
|
| 30 |
COPY . /app/
|
| 31 |
|
| 32 |
+
# Ensure the upload directory and app directory have the correct permissions
|
| 33 |
RUN mkdir -p /app/uploads && \
|
| 34 |
+
chmod -R 777 /app/uploads && \
|
| 35 |
+
chmod -R 777 /app
|
| 36 |
|
| 37 |
# Expose the port that the app runs on
|
| 38 |
EXPOSE 7860
|