1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-06-21 22:30:11 +02:00

fix: redirection to localhost:3000

This commit is contained in:
Elias Schneider 2023-08-01 12:35:37 +02:00
parent 62deb6c152
commit ea0d5216e8
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

View File

@ -49,5 +49,5 @@ WORKDIR /opt/app
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:3000/api/health || exit 1
# HOSTNAME=127.0.0.1 fixes https://github.com/vercel/next.js/issues/51684. It can be removed as soon as the issue is fixed
CMD cp -rn /tmp/img /opt/app/frontend/public && HOSTNAME=127.0.0.1 node frontend/server.js & cd backend && npm run prod
# HOSTNAME=0.0.0.0 fixes https://github.com/vercel/next.js/issues/51684. It can be removed as soon as the issue is fixed
CMD cp -rn /tmp/img /opt/app/frontend/public && HOSTNAME=0.0.0.0 node frontend/server.js & cd backend && npm run prod