diff --git a/fancy-frontend/Dockerfile b/fancy-frontend/Dockerfile index 25ca629..d2bd4df 100644 --- a/fancy-frontend/Dockerfile +++ b/fancy-frontend/Dockerfile @@ -24,7 +24,7 @@ COPY --from=builder /app/messages ./messages EXPOSE 3000 -HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ - CMD wget -q --spider http://localhost:3000/ || exit 1 +HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ + CMD node -e "require('http').get('http://localhost:3000', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))" CMD ["node_modules/.bin/next", "start", "-H", "0.0.0.0", "-p", "3000"] \ No newline at end of file