FROM python:3.9 # Set the working directory to /code WORKDIR /code # Copy the requirements file into the container at /code COPY ./requirements.txt /code/requirements.txt # Install the dependencies RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # Copy the rest of the application code COPY . . # Expose port 7860 (required by Hugging Face Spaces) EXPOSE 7860 # Run the application CMD ["python", "app.py"]