Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -1,15 +1,11 @@
|
|
| 1 |
-
# Base image with Python
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy files
|
| 8 |
COPY requirements.txt ./
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
-
COPY
|
| 12 |
|
| 13 |
-
# Expose port (HF listens on $PORT)
|
| 14 |
ENV PORT 7860
|
| 15 |
-
CMD ["uvicorn", "app
|
|
|
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
COPY requirements.txt ./
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
+
COPY . .
|
| 9 |
|
|
|
|
| 10 |
ENV PORT 7860
|
| 11 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|