feat: add healthcheck feature and update Dockerfile for build process
This commit is contained in:
parent
e78ac289f7
commit
ef2f477fcd
3 changed files with 29 additions and 16 deletions
6
puppy/app/healthcheck.cpp
Normal file
6
puppy/app/healthcheck.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include "httplib.hpp"
|
||||
|
||||
int main() {
|
||||
auto res = httplib::Client("127.0.0.1", 80).Get("/health");
|
||||
return !(res && res->status == 200);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue