Skip to content

Commit

Permalink
fix: docker image healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
AleF83 committed May 12, 2024
1 parent e1211c1 commit f1a3957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ WORKDIR /OpenIdConnectServerMock
ENV ASPNETCORE_ENVIRONMENT=Development

EXPOSE 80
EXPOSE 443

HEALTHCHECK --start-period=2s --interval=1s --timeout=100ms --retries=10 \
CMD curl -f http://localhost/health || exit 1
CMD curl -k --location https://localhost/health || exit 1

ENTRYPOINT ["dotnet", "OpenIdConnectServerMock.dll" ]

0 comments on commit f1a3957

Please sign in to comment.