Skip to content

Commit

Permalink
added healthcheck using curl and jq
Browse files Browse the repository at this point in the history
  • Loading branch information
mortee committed Nov 19, 2024
1 parent 6ab61e4 commit e5f81f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FROM debian:bookworm-20241016-slim AS runtime

RUN useradd -c 'atuin user' atuin && mkdir /config && chown atuin:atuin /config
# Install ca-certificates for webhooks to work
RUN apt update && apt install ca-certificates -y && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install ca-certificates curl jq -y && rm -rf /var/lib/apt/lists/*
WORKDIR app

USER atuin
Expand All @@ -30,4 +30,5 @@ ENV RUST_LOG=atuin::api=info
ENV ATUIN_CONFIG_DIR=/config

COPY --from=builder /app/target/release/atuin /usr/local/bin
HEALTHCHECK CMD curl -sSf http://localhost:8888 | jq .version || exit 1
ENTRYPOINT ["/usr/local/bin/atuin"]

0 comments on commit e5f81f1

Please sign in to comment.