diff --git a/Dockerfile b/Dockerfile index 1fa7ee9..0c3a33b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,5 +12,8 @@ COPY . . # Base Port EXPOSE 3000 +# Health Check +HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://localhost:3000/ || exit 1 + # Start the app CMD ["node", "index.js"] \ No newline at end of file