diff --git a/Dockerfile b/Dockerfile index 41eafc5..0c833db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,5 +32,9 @@ RUN mkdir -p docs # Expose port EXPOSE 3333 +# Health check +HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ + CMD wget --no-verbose --tries=1 --spider http://localhost:3333/api/health || exit 1 + # Default command: run the server (not interactive CLI) CMD ["npm", "run", "server"]