feat: add curl to the final image to aid in healthchecks

closes: https://github.com/mCaptcha/mCaptcha/issues/144
This commit is contained in:
Aravinth Manivannan 2024-03-14 20:52:37 +05:30
parent 1c9e242d7e
commit 65c92ee96e
No known key found for this signature in database
GPG Key ID: F8F50389936984FF

View File

@ -31,6 +31,10 @@ RUN cargo build --release
FROM debian:bookworm as mCaptcha FROM debian:bookworm as mCaptcha
LABEL org.opencontainers.image.source https://github.com/mCaptcha/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 RUN useradd -ms /bin/bash -u 1001 mcaptcha
WORKDIR /home/mcaptcha WORKDIR /home/mcaptcha
COPY --from=rust /src/target/release/mcaptcha /usr/local/bin/ COPY --from=rust /src/target/release/mcaptcha /usr/local/bin/