diff --git a/Dockerfile b/Dockerfile index 3c62f63c71..7063110093 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,5 +40,8 @@ USER nextjs # Expose the port the app will run on EXPOSE 3000 9464 +HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=6 \ + CMD wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1 + # Start the application CMD ["/app/startup.sh"]