joeyaintjoking's picture
initial commit
b1713d3
raw
history blame contribute delete
471 Bytes
# 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"]