diff --git a/Dockerfile b/Dockerfile index 4948655..073c1e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,4 +31,7 @@ WORKDIR /app COPY --from=builder /app/dist . EXPOSE 80 + +HEALTHCHECK --interval=30s --timeout=3s CMD wget --no-verbose --tries=1 --spider http://localhost/ || exit 1 + CMD ["nginx"]