Skip to content

Commit

Permalink
add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Jan 23, 2025
1 parent 4b8a87d commit dba6c64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ EXPOSE 443
RUN apt-get update && apt-get install -y curl && \
apt-get clean && rm -rf /var/lib/apt/lists/*

HEALTHCHECK --start-period=30s CMD curl -f http://localhost/api/health || exit 1

COPY --from=build /app/publish .
CMD ["dotnet", "AdLerBackend.API.dll"]

0 comments on commit dba6c64

Please sign in to comment.