Spaces:
Sleeping
Sleeping
File size: 445 Bytes
1574be2 bb21b44 1574be2 bb21b44 1574be2 bb21b44 1574be2 bb21b44 1574be2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Use a slim Python image
FROM python:3.9-slim
# Set the working directory
WORKDIR /code
# Copy your requirements and install them
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy your application code
COPY . .
# Expose port 7860 (Hugging Face requirement)
EXPOSE 7860
# Command to run your FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |