Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +6 -9
Dockerfile
CHANGED
|
@@ -1,20 +1,17 @@
|
|
| 1 |
-
# Use
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
-
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy
|
| 8 |
-
COPY
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
COPY . .
|
| 15 |
-
|
| 16 |
-
# Expose port 7860 for Hugging Face Spaces
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
-
#
|
| 20 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|
|
|
|
| 1 |
+
# 🐍 Use Python 3.10+ as the base image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
+
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy project files into the container
|
| 8 |
+
COPY . .
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# Expose port 7860
|
|
|
|
|
|
|
|
|
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
+
# Run the Flask app using Gunicorn for production
|
| 17 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|