Merge pull request #150 from mCaptcha/fix-144

feat: add curl to the final image to aid in healthchecks
This commit is contained in:
Aravinth Manivannan 2024-03-15 18:01:12 +05:30 committed by GitHub
commit 59e339f287
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/