feat: add health check script and update Dockerfile for health check integration
This commit is contained in:
@@ -26,7 +26,9 @@ COPY --from=build /app/backend/node_modules dist/backend/node_modules
|
||||
|
||||
WORKDIR /app
|
||||
COPY entrypoint.sh entrypoint.sh
|
||||
COPY healthcheck.js healthcheck.js
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["./entrypoint.sh"]
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 CMD ["node", "/app/healthcheck.js"]
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user