added healthcheck

This commit is contained in:
joecryptotoo 2024-06-23 09:45:48 -07:00 committed by GitHub
parent d081b64140
commit 7341e26b0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,8 +43,10 @@ ENV CXX=/opt/rocm/llvm/bin/clang++
# Enable cURL
ENV LLAMA_CURL=1
RUN apt-get update && \
apt-get install -y libcurl4-openssl-dev
apt-get install -y libcurl4-openssl-dev curl
RUN make -j$(nproc) llama-server
HEALTHCHECK CMD [ "curl", "-f", "http://localhost:8080/health" ]
ENTRYPOINT [ "/app/llama-server" ]