Add a healthcheck endpoint (#468)
The purpose of this endpoint is to respond only with http code 200, to be used by services such as Docker to check if the server is still running.
This commit is contained in:
@@ -32,5 +32,8 @@ ENV INDOCKER=1
|
||||
WORKDIR /App
|
||||
COPY --from=build-env /App/out .
|
||||
|
||||
# Configure healthcheck
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 CMD curl --fail http://localhost:80/healthCheck || exit 1
|
||||
|
||||
# start gaseous-server
|
||||
ENTRYPOINT ["dotnet", "gaseous-server.dll"]
|
||||
|
Reference in New Issue
Block a user