Skip to content

Commit d43c040

Browse files
committed
Added healthcheck to dockerfile
1 parent 85924ad commit d43c040

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ ENV LANG=en_US
2929
COPY --from=build /app/publish /app
3030

3131
ENTRYPOINT ["dotnet", "/app/SqliteArchive.Server.dll"]
32+
33+
HEALTHCHECK --start-period=1m --start-interval=1s \
34+
CMD wget --no-verbose --tries=1 --spider http://localhost || exit 1

0 commit comments

Comments
 (0)