| # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| # you will also find guides on how best to write your Dockerfile | |
| FROM python:3.9 | |
| COPY ./requirements.txt /requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /requirements.txt | |
| COPY . . | |
| RUN chmod 777 --recursive /usr/local/lib/python3.9/site-packages/mercury/ | |
| RUN chmod 777 --recursive /usr/local/lib/python3.9/logging/ | |
| RUN touch /django-errors.log | |
| RUN chmod 777 /django-errors.log | |
| CMD ["mercury", "run", "--verbose", "0.0.0.0:7860"] |