build: add healthcheck for docker
All checks were successful
Build and Deploy Docker Container / build-and-deploy (push) Successful in 5m14s
All checks were successful
Build and Deploy Docker Container / build-and-deploy (push) Successful in 5m14s
This commit is contained in:
parent
ebec0a2d2b
commit
f5dbc46856
@ -3,6 +3,9 @@ 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
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||||
|
CMD curl --fail http://localhost:8080/health || exit 1
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY . .
|
COPY . .
|
||||||
|
Loading…
Reference in New Issue
Block a user