fix: use curl consistently for healthcheck in Dockerfile and docker-compose.yml

- Replace wget with curl in root Dockerfile healthcheck command (line 50)
- Add curl to apk dependencies in root Dockerfile (line 22)
- Align healthcheck parameters between Dockerfile and docker-compose.yml
- Mark task 6.8 as complete

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marko Djordjevic 2026-02-18 11:37:52 +01:00
parent 5896e56faa
commit 300752da3a
2 changed files with 4 additions and 4 deletions

View file

@ -18,8 +18,8 @@ FROM node:20-alpine
WORKDIR /app
# Install PostgreSQL client for pg module
RUN apk add --no-cache postgresql-client
# Install PostgreSQL client and curl for healthcheck
RUN apk add --no-cache postgresql-client curl
RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001
@ -47,6 +47,6 @@ USER nextjs
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 CMD curl -f http://localhost:3000/api/health
CMD ["/app/scripts/startup.sh"]