# BROARchat certificate service: the pinned upstream lego image (v5.6.0, same major as the
# Windows installer's bundled lego.exe -- scripts/fetch-lego.ps1) plus curl (address query
# with the secret kept off argv) and openssl (reads the certificate's names).
# Bump the tag AND the digest together, deliberately; check certs.sh against the new CLI.
FROM goacme/lego:v5.6.0@sha256:6f1583fc026a455ea46a7a5858c576105bb69c2e2de69db391cab7f14750350c

RUN apk add --no-cache curl openssl

COPY certs.sh /usr/local/bin/broarchat-certs
RUN chmod 755 /usr/local/bin/broarchat-certs

ENTRYPOINT ["/bin/sh", "/usr/local/bin/broarchat-certs"]
