Add healthcheck
All checks were successful
Deploy / build-and-publish (push) Successful in 1m58s
Deploy / deploy (push) Successful in 21s

This commit is contained in:
2024-12-24 17:48:31 +03:00
parent 7e7f5b7fc4
commit 856ef353b5

View File

@@ -13,4 +13,7 @@ COPY --from=builder /app/node_modules node_modules/
COPY package.json . COPY package.json .
EXPOSE 3000 EXPOSE 3000
ENV NODE_ENV=production ENV NODE_ENV=production
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1
CMD [ "node", "build" ] CMD [ "node", "build" ]