Add healthchecks to llama-server containers (#8081)
* added healthcheck * added healthcheck * added healthcheck * added healthcheck * added healthcheck * moved curl to base * moved curl to base
This commit is contained in:
parent
c8ad35955a
commit
925c30956d
5 changed files with 16 additions and 10 deletions
|
@ -30,8 +30,10 @@ RUN make -j$(nproc) llama-server
|
|||
FROM ${BASE_CUDA_RUN_CONTAINER} as runtime
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y libcurl4-openssl-dev libgomp1
|
||||
apt-get install -y libcurl4-openssl-dev libgomp1 curl
|
||||
|
||||
COPY --from=build /app/llama-server /llama-server
|
||||
|
||||
HEALTHCHECK CMD [ "curl", "-f", "http://localhost:8080/health" ]
|
||||
|
||||
ENTRYPOINT [ "/llama-server" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue