diff --git a/Dockerfile b/Dockerfile index e8455afe..9c29caf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,5 @@ WORKDIR /usr/share/nginx/html RUN rm -rf ./* COPY --from=builder /app/dist . EXPOSE 80 -ENTRYPOINT ["nginx", "-g", "daemon off;"] \ No newline at end of file +HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost/ || exit 1 +ENTRYPOINT ["nginx", "-g", "daemon off;"]