Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 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 |
+
|