ADD file:e3abcdba177145039cfef1ad882f9f81a612a24c9f044b19f713b95454d2e3f6 in / |
CMD ["/bin/sh"] |
ARG TARGETARCH |
ENV S6_OVERLAY_ARCH=x86_64 |
ARG S6_OVERLAY_VERSION=3.1.5.0 |
ENV PUID=1000 |
ENV PGID=1000 |
ENV TZ=UTC |
ENV GENERATE_DHPARAM=true |
ENV INTERVAL=0 */6 * * * |
ENV DOMAINS= |
ENV EMAIL= |
ENV STAGING=false |
ENV CUSTOM_CA= |
ENV CUSTOM_CA_SERVER= |
ENV PLUGIN=standalone |
ENV PROPOGATION_TIME=10 |
ENV CLOUDFLARE_TOKEN= |
ENV CERT_COUNT=1 |
RUN |1 S6_OVERLAY_VERSION=3.1.5.0 /bin/sh -c apk update && apk add curl bash python3 py3-virtualenv procps tzdata nano shadow xz busybox-suid openssl # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.5.0 /bin/sh -c mkdir /config && mkdir /app && useradd -u 1000 -U -d /config -s /bin/false mrmeeb && usermod -G users mrmeeb # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.5.0 /bin/sh -c curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz" | tar Jpxf - -C / && curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz" | tar Jpxf - -C / && curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz" | tar Jpxf - -C / && curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz" | tar Jpxf - -C / # buildkit |
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_VERBOSITY=1 |
RUN |1 S6_OVERLAY_VERSION=3.1.5.0 /bin/sh -c python3 -m venv /app/certbot/ && /app/certbot/bin/pip install --upgrade pip # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.5.0 /bin/sh -c apk add --no-cache --virtual .deps gcc python3-dev libc-dev libffi-dev && /app/certbot/bin/pip install certbot certbot-dns-cloudflare && ln -s /app/certbot/bin/certbot /usr/bin/certbot && apk del .deps # buildkit |
COPY root / # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.5.0 /bin/sh -c chmod +x /container-init.sh && chmod +x /certbot-prepare.sh && chmod +x /certbot-renew.sh && chown -R ${PUID}:${PGID} /app /config # buildkit |
ENTRYPOINT ["/init"] |