fix: ECONNREFUSED with Docker ipv6 enabled

This commit is contained in:
Elias Schneider
2023-07-31 15:37:04 +02:00
parent b534129194
commit c9a2a469c6
2 changed files with 3 additions and 2 deletions

View File

@@ -49,4 +49,5 @@ WORKDIR /opt/app
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:3000/api/health || exit 1
CMD cp -rn /tmp/img /opt/app/frontend/public && node frontend/server.js & cd backend && npm run prod
# 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