Spaces:
Sleeping
Sleeping
File size: 422 Bytes
832f407 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Use official Python base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all app files
COPY . .
# Expose the correct port for Hugging Face
EXPOSE 7860
# Run with correct port
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|