File size: 514 Bytes
0620c53
 
 
 
 
 
 
 
 
 
 
88aad67
 
b49e938
 
2026f1a
412f6b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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"]