diff --git a/Dockerfile b/Dockerfile index 65c41aa..617f0ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,10 +35,10 @@ COPY --from=0 /app/node_modules ./node_modules COPY . . # Expose the port on which the Node.js application will run -EXPOSE 3000 +EXPOSE 3000/tcp # Configure healthcheck -HEALTHCHECK --interval=1m --timeout=5s CMD node healtcheck.js || exit 1 +HEALTHCHECK --start-period=10s --interval=1m --timeout=5s --retries=3 CMD node healthcheck.js || exit 1 # Command to run the Node.js application CMD ["node", "server.js"]