# Use an official Python runtime as a parent image FROM python:3.9 # Set the working directory WORKDIR /code # Copy and install dependencies COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # Copy all your project files COPY ./ /code/ # Use Uvicorn to run the FastAPI app on the correct port for Hugging Face Spaces CMD ["uvicorn", "src.streamlit_app:app", "--host", "0.0.0.0", "--port", "7860"]