File size: 456 Bytes
1cd89be
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
FROM python:3.12  # or python:3.11 or python:3.10
WORKDIR /code
RUN git clone https://huggingface.co/fotopee/fotopee  # replace repo url to yours
COPY . .
RUN chmod -R u+w /code
RUN find /code -type d -exec chmod 0777 {} \;  # Suchlike permissions changes are required to run in HF.
RUN find /code -type f -exec chmod 0666 {} \;
EXPOSE 7860
CMD ["python", "/code/fotopee/run.py", "--update", "--fonts", "--templates"]  # If you want, remove unneeded args.