Spaces:
Runtime error
Runtime error
File size: 471 Bytes
8aec4eb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Use Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /code
# Install system dependencies (optional)
RUN apt-get update && apt-get install -y git
# Install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy model and app
COPY . .
# Expose the default HF Spaces port
EXPOSE 7860
# Run the FastAPI app using Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|