FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340 AS builder ARG VERSION=4.14.2 # renovate: datasource=github-releases depName=go-acme/lego extractVersion=^v(?.*)$ WORKDIR /src ADD https://github.com/go-acme/lego/releases/download/v${VERSION}/lego_v${VERSION}_linux_amd64.tar.gz /src.tar.gz RUN tar --no-same-owner -xvzf /src.tar.gz && \ install -D --mode 0755 /src/lego /build/usr/bin/lego FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340 RUN apt-get update -y && apt-get upgrade -y && \ apt-get install -y --no-install-recommends ca-certificates gettext gosu RUN adduser --system --group --uid 10000 --home /var/lib/letsencrypt letsencrypt COPY --from=builder /build / COPY container/run-lego /run-lego COPY container/run-hook /run-hook ENTRYPOINT ["/run-lego"]