Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +11 -13
Dockerfile
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
-
|
| 3 |
-
WORKDIR /
|
| 4 |
-
|
| 5 |
-
COPY requirements.txt
|
| 6 |
-
|
| 7 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
-
|
| 9 |
-
COPY .
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
FROM python:3.9 # Use a Python 3.9 base image
|
| 2 |
+
|
| 3 |
+
WORKDIR /app # Set the working directory in the container
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt ./ # Copy the requirements file
|
| 6 |
+
|
| 7 |
+
RUN pip install --no-cache-dir -r requirements.txt # Install dependencies
|
| 8 |
+
|
| 9 |
+
COPY app.py ./ # Copy your Flask app
|
| 10 |
+
|
| 11 |
+
CMD ["python", "app.py"] # Command to run your Flask app
|
|
|
|
|
|