Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update Dockerfile
Browse files- Dockerfile +4 -8
Dockerfile
CHANGED
@@ -25,12 +25,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
25 |
# Copy the rest of the application code
|
26 |
COPY --chown=user . /app
|
27 |
|
28 |
-
#
|
29 |
-
|
30 |
-
ENV FLASK_ENV=production
|
31 |
|
32 |
-
#
|
33 |
-
|
34 |
-
|
35 |
-
# Set the command to start the application using Gunicorn with Eventlet
|
36 |
-
CMD ["python", "app.py"]
|
|
|
25 |
# Copy the rest of the application code
|
26 |
COPY --chown=user . /app
|
27 |
|
28 |
+
# Expose the port your Flask app runs on
|
29 |
+
EXPOSE 5000
|
|
|
30 |
|
31 |
+
# Run the Flask app using Gunicorn
|
32 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]
|
|
|
|
|
|