summaryrefslogtreecommitdiff
path: root/.devops/llama-server.Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '.devops/llama-server.Dockerfile')
-rw-r--r--.devops/llama-server.Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/.devops/llama-server.Dockerfile b/.devops/llama-server.Dockerfile
index aa93369b..b631d580 100644
--- a/.devops/llama-server.Dockerfile
+++ b/.devops/llama-server.Dockerfile
@@ -1,9 +1,9 @@
ARG UBUNTU_VERSION=22.04
-FROM ubuntu:$UBUNTU_VERSION as build
+FROM ubuntu:$UBUNTU_VERSION AS build
RUN apt-get update && \
- apt-get install -y build-essential git libcurl4-openssl-dev
+ apt-get install -y build-essential git libcurl4-openssl-dev curl
WORKDIR /app
@@ -13,7 +13,7 @@ ENV LLAMA_CURL=1
RUN make -j$(nproc) llama-server
-FROM ubuntu:$UBUNTU_VERSION as runtime
+FROM ubuntu:$UBUNTU_VERSION AS runtime
RUN apt-get update && \
apt-get install -y libcurl4-openssl-dev libgomp1
@@ -22,4 +22,6 @@ COPY --from=build /app/llama-server /llama-server
ENV LC_ALL=C.utf8
+HEALTHCHECK CMD [ "curl", "-f", "http://localhost:8080/health" ]
+
ENTRYPOINT [ "/llama-server" ]