# Use official Python image FROM python:3.10 # 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 -r /code/requirements.txt # Copy all your app files to the cloud COPY . . # Hugging Face REQUIRES the app to run on port 7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]