build: fix unhealth
All checks were successful
.NET Test Pipeline / build-and-test (push) Successful in 2m13s
Build and Deploy Docker Container / build-and-deploy (push) Successful in 2m52s

Signed-off-by: Polianin Nikita <wesser@noreply.git.winsomnia.net>
This commit is contained in:
Polianin Nikita 2024-10-25 09:38:28 +03:00
parent 2ccc476686
commit ed99fce9b8

View File

@ -3,6 +3,7 @@ LABEL company="Winsomnia"
LABEL maintainer.name="Wesser" maintainer.email="support@winsomnia.net" LABEL maintainer.name="Wesser" maintainer.email="support@winsomnia.net"
WORKDIR /app WORKDIR /app
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl --fail http://localhost:8080/health || exit 1 CMD curl --fail http://localhost:8080/health || exit 1