Update Dockerfile
Browse files- Dockerfile +0 -6
Dockerfile
CHANGED
|
@@ -1,17 +1,11 @@
|
|
| 1 |
# Use official lightweight Python image
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
-
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Copy project files
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
-
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
# Expose the port used by Hugging Face Spaces
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
-
# Start FastAPI app with uvicorn
|
| 17 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
# Use official lightweight Python image
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
|
|
|
| 4 |
WORKDIR /app
|
|
|
|
|
|
|
| 5 |
COPY . /app
|
| 6 |
|
|
|
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
|
|
|
| 9 |
EXPOSE 7860
|
| 10 |
|
|
|
|
| 11 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|