Update Dockerfile
Browse files- Dockerfile +4 -11
Dockerfile
CHANGED
@@ -1,17 +1,10 @@
|
|
1 |
-
#
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
-
# Set working directory
|
5 |
WORKDIR /app
|
6 |
-
|
7 |
-
# Copy all project files to the container
|
8 |
COPY . .
|
9 |
|
10 |
-
|
11 |
-
RUN pip install -r requirements.txt
|
12 |
-
|
13 |
-
# Expose the port Flask will run on (required by Hugging Face Spaces)
|
14 |
-
EXPOSE 5000
|
15 |
|
16 |
-
|
17 |
-
CMD ["
|
|
|
1 |
+
# Dockerfile
|
2 |
FROM python:3.9-slim
|
3 |
|
|
|
4 |
WORKDIR /app
|
|
|
|
|
5 |
COPY . .
|
6 |
|
7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
8 |
|
9 |
+
EXPOSE 7860
|
10 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|