maleonly commited on
Commit
ebe21e4
·
verified ·
1 Parent(s): 8effb10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,7 +1,5 @@
1
- FROM python:3.9
2
  WORKDIR /code
3
- RUN git clone https://git.nixnet.services/DUOLabs333/Photopea-Offline.git photopea
4
- RUN cd photopea && python Updater.py
5
- RUN sed -i '/<\/body>/i <script>var observer=new MutationObserver((function(e){e.forEach((function(e){if(e.addedNodes&&e.addedNodes.length>0)for(var d=0;d<e.addedNodes.length;d++){e.addedNodes[d]===document.querySelector("body > div.flexrow.app")&&(setTimeout((()=>{var e=document.querySelector("body > div.flexrow.app > div > div:nth-child(3) > div:nth-child(1)"),d=document.querySelector("body > div.flexrow.app > div > div:nth-child(3) > div:nth-child(2) > div > span:nth-child(2) > button:nth-child(1)"),o=document.querySelector("body > div.flexrow.app > div > div:nth-child(3) > div:nth-child(2) > div > span:nth-child(2) > button:nth-child(2)");e.remove(),d.remove(),o.remove(),document.querySelector("style#hide").remove()}),1e3),observer.disconnect())}}))}));observer.observe(document.body,{childList:!0,subtree:!0});</script>' /code/photopea/www.photopea.com/index.html
6
  COPY . .
7
- CMD ["python", "-m", "http.server", "--directory", "/code/photopea/www.photopea.com", "7860"]
 
1
+ FROM python:3.11
2
  WORKDIR /code
3
+ RUN git clone https://git.nixnet.services/uglyworm/Photopea-Offline.git photopea
 
 
4
  COPY . .
5
+ CMD ["python", "/code/photopea/run.py", "--update"]