FROM python:3.9 WORKDIR /code COPY ./requirements.txt /code/requirements.txt # Install dependencies RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # Copy the app and the model folder COPY . . # Grant permissions (required by HF) RUN chmod -R 777 /code CMD ["python", "app.py"]