Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -11
Dockerfile
CHANGED
|
@@ -1,18 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
FROM python:3.9-slim
|
| 3 |
|
| 4 |
# Set the working directory in the container
|
| 5 |
-
WORKDIR /
|
| 6 |
|
| 7 |
-
# Copy the
|
| 8 |
-
COPY requirements.txt .
|
| 9 |
-
|
| 10 |
-
# Install the dependencies
|
| 11 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
-
|
| 13 |
-
# Copy the rest of the application code to the container
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
-
|
|
|
|
| 17 |
# Define the command to run the Flask app
|
| 18 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
FROM python:3.10.11
|
|
|
|
| 2 |
|
| 3 |
# Set the working directory in the container
|
| 4 |
+
WORKDIR /code
|
| 5 |
|
| 6 |
+
# Copy the current directory contents into the container at /usr/src/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
COPY . .
|
| 8 |
|
| 9 |
+
# Install any needed packages specified in requirements.txt
|
| 10 |
+
RUN pip install -r requirements.txt
|
| 11 |
# Define the command to run the Flask app
|
| 12 |
CMD ["python", "app.py"]
|