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