-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.frontend
11 lines (7 loc) · 1.11 KB
/
Dockerfile.frontend
1
2
3
4
5
6
7
8
9
10
11
FROM penpotapp/frontend:latest
COPY ./legal-generated-html/* /var/www/app
RUN for file in /var/www/app/js/*.js; do sed -i -e 's|https://penpot.app/terms|https://design.zapal.tech/terms-of-use.html|g' $file; done;
RUN for file in /var/www/app/js/*.js; do sed -i -e 's|https://penpot.app/privacy|https://design.zapal.tech/privacy-policy.html|g' $file; done;
RUN sed -i -e "s|</body>|<script defer>if(location.hash === '#/auth/register'){const privacyInterval=setInterval(() => {const links=[...document.querySelectorAll('a[href=\"https://penpot.app/privacy\"]')];if(links.length){clearInterval(privacyInterval)}links.map(a => (a.href='https://design.zapal.design/privacy-policy.html'))})}</script></body>|g" /var/www/app/index.html
RUN sed -i -e "s|</body>|<script defer>if(location.hash === '#/auth/register'){const termsInterval=setInterval(() => {const links=[...document.querySelectorAll('a[href=\"https://penpot.app/terms\"]')];if(links.length){clearInterval(termsInterval)}links.map(a => (a.href='https://design.zapal.design/terms-of-use.html'))})}</script></body>|g" /var/www/app/index.html
CMD ["nginx", "-g", "daemon off;"]