fix(docker): fix supersync container startup issues

- Fix Dockerfile.test: use correct path dist/src/index.js (not dist/index.js)
  since TypeScript compiles with rootDir="." preserving src/ directory
- Fix healthcheck: use 127.0.0.1 instead of localhost to avoid IPv6
  resolution issues (wget resolves localhost to ::1 but server listens on IPv4)
This commit is contained in:
Johannes Millan 2025-12-19 17:04:32 +01:00
parent 8b1bfe306c
commit b77328a381
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ services:
'--quiet',
'--tries=1',
'--spider',
'http://localhost:1900/health',
'http://127.0.0.1:1900/health',
]
interval: 5s
timeout: 5s

View file

@ -50,4 +50,4 @@ ENV CORS_ORIGINS=*
ENV JWT_SECRET=e2e-test-secret-minimum-32-chars-long-for-security
# Push schema to DB and start server
CMD sh -c "npx prisma db push && node dist/index.js"
CMD sh -c "npx prisma db push && node dist/src/index.js"