Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
# Use a base image with Python
|
| 2 |
-
FROM python:3.
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
|
@@ -16,8 +16,5 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 16 |
# Expose port 5000 to the world outside this container
|
| 17 |
EXPOSE 5000
|
| 18 |
|
| 19 |
-
# Define environment variable (optional, not needed for this setup)
|
| 20 |
-
ENV NAME World
|
| 21 |
-
|
| 22 |
# Run app.py when the container launches
|
| 23 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
# Use a base image with Python 3.10
|
| 2 |
+
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
|
|
|
| 16 |
# Expose port 5000 to the world outside this container
|
| 17 |
EXPOSE 5000
|
| 18 |
|
|
|
|
|
|
|
|
|
|
| 19 |
# Run app.py when the container launches
|
| 20 |
CMD ["python", "app.py"]
|