Spaces:
Sleeping
Sleeping
File size: 494 Bytes
9497244 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set the working directory
WORKDIR /code
# Copy the requirements file and install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the rest of your backend code (including the model)
COPY . /code
# Hugging Face Spaces routes traffic through port 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |