Spaces:
Paused
Paused
prabinpanta0
commited on
Commit
•
1fe0860
1
Parent(s):
a14d8bb
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -21,8 +21,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
21 |
# Copy the application code
|
22 |
COPY . /app/
|
23 |
|
24 |
-
# Expose port
|
25 |
-
EXPOSE
|
26 |
|
27 |
-
# Command to run the application
|
28 |
-
CMD ["
|
|
|
21 |
# Copy the application code
|
22 |
COPY . /app/
|
23 |
|
24 |
+
# Expose port 7860 for the app (standard port for Hugging Face Spaces)
|
25 |
+
EXPOSE 7860
|
26 |
|
27 |
+
# Command to run the application with Gunicorn
|
28 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
|