WebashalarForML
commited on
Commit
•
12834c0
1
Parent(s):
c24bc14
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -29,6 +29,11 @@ RUN touch /app/app_error.log && chmod 777 /app/app_error.log
|
|
29 |
# Copy the rest of the application code to /app
|
30 |
COPY . /app/
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
# Expose the port that the app runs on
|
33 |
EXPOSE 7860
|
34 |
|
@@ -38,4 +43,4 @@ ENV FLASK_ENV=production
|
|
38 |
|
39 |
# Command to run the application
|
40 |
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
|
41 |
-
#CMD ["gunicorn", "--workers=5", "--threads=2", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
|
|
|
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
|
39 |
|
|
|
43 |
|
44 |
# Command to run the application
|
45 |
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
|
46 |
+
#CMD ["gunicorn", "--workers=5", "--threads=2", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
|