policy123 commited on
Commit
c1d21d7
·
verified ·
1 Parent(s): 709687f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,3 +1,5 @@
 
 
1
 
2
  # Use an official Python runtime as a parent image
3
  FROM python:3.9-slim
@@ -14,6 +16,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
  # Copy the rest of the application's code into the container at /code
15
  COPY ./app.py /code/app.py
16
 
17
- # Command to run the application using the uvicorn server
18
- # The server will be accessible on port 7860 inside the container.
19
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # --- Dockerfile ---
2
+ # **UPDATED:** The final command changes to run the Gradio app.
3
 
4
  # Use an official Python runtime as a parent image
5
  FROM python:3.9-slim
 
16
  # Copy the rest of the application's code into the container at /code
17
  COPY ./app.py /code/app.py
18
 
19
+ # **UPDATED COMMAND:** Command to run the Gradio application.
20
+ CMD ["python", "app.py"]
21
+