FROM python:3.9 WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY . /code # Fix permissions for Hugging Face Spaces (user 1000) RUN chmod -R 777 /code EXPOSE 7860 CMD ["python", "Webapp/app.py"]