Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -12
Dockerfile
CHANGED
|
@@ -1,19 +1,8 @@
|
|
| 1 |
-
# Use official Python image
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
-
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Copy the necessary files
|
| 8 |
COPY requirements.txt .
|
| 9 |
-
COPY app.py .
|
| 10 |
-
COPY templates ./templates
|
| 11 |
-
|
| 12 |
-
# Install dependencies
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
-
|
| 16 |
-
EXPOSE 7860
|
| 17 |
-
|
| 18 |
-
# Run the Flask app
|
| 19 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|
|
|
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
|
|
|
|
|
|
| 4 |
COPY requirements.txt .
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 6 |
|
| 7 |
+
COPY . .
|
|
|
|
|
|
|
|
|
|
| 8 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|