From 65c92ee96e1bfefde18c8799a8091068b3feb21b Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Thu, 14 Mar 2024 20:52:37 +0530 Subject: [PATCH] feat: add curl to the final image to aid in healthchecks closes: https://github.com/mCaptcha/mCaptcha/issues/144 --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9e3398aa..4dcc8ee0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,10 @@ RUN cargo build --release FROM debian:bookworm as mCaptcha LABEL org.opencontainers.image.source https://github.com/mCaptcha/mCaptcha +RUN set -ex; \ + apt-get update; \ + DEBIAN_FRONTEND=noninteractive \ + apt-get install -y --no-install-recommends curl RUN useradd -ms /bin/bash -u 1001 mcaptcha WORKDIR /home/mcaptcha COPY --from=rust /src/target/release/mcaptcha /usr/local/bin/