1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-06-27 13:20:48 +02:00

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
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C
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

View File

@ -4,7 +4,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"start": "node .next/standalone/server.js",
"lint": "next lint",
"format": "prettier --end-of-line=auto --write \"src/**/*.ts*\""
},