2024-10-16 11:06:29 +10:00
|
|
|
FROM nginxproxymanager/testca AS testca
|
2024-01-10 09:32:12 +10:00
|
|
|
FROM nginxproxymanager/nginx-full:certbot-node
|
2020-02-19 15:55:06 +11:00
|
|
|
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
|
|
|
|
|
|
2024-10-16 11:06:29 +10:00
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
|
|
2023-05-10 09:57:24 +10:00
|
|
|
ENV SUPPRESS_NO_CONFIG_WARNING=1 \
|
|
|
|
|
S6_BEHAVIOUR_IF_STAGE2_FAILS=1 \
|
|
|
|
|
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
|
|
|
|
S6_FIX_ATTRS_HIDDEN=1 \
|
|
|
|
|
S6_KILL_FINISH_MAXTIME=10000 \
|
2024-01-10 09:32:12 +10:00
|
|
|
S6_VERBOSITY=2 \
|
|
|
|
|
NODE_OPTIONS="--openssl-legacy-provider"
|
2020-02-19 15:55:06 +11:00
|
|
|
|
|
|
|
|
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
|
2021-04-29 08:28:40 +10:00
|
|
|
&& apt-get update \
|
2025-09-25 18:31:00 +10:00
|
|
|
&& apt-get install -y jq python3-pip logrotate moreutils \
|
2021-04-29 08:28:40 +10:00
|
|
|
&& apt-get clean \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2020-02-19 15:55:06 +11:00
|
|
|
|
2021-02-07 09:52:37 -05:00
|
|
|
# Task
|
2024-10-16 11:06:29 +10:00
|
|
|
WORKDIR /usr
|
2026-05-25 12:40:10 +10:00
|
|
|
RUN curl -sL 'https://taskfile.dev/install.sh' | sh
|
2021-02-07 09:52:37 -05:00
|
|
|
|
|
|
|
|
COPY rootfs /
|
2026-05-25 12:40:10 +10:00
|
|
|
|
2023-03-17 08:50:32 +10:00
|
|
|
COPY scripts/install-s6 /tmp/install-s6
|
2026-06-09 10:25:10 +10:00
|
|
|
RUN rm -f /etc/nginx/conf.d/production.conf.template \
|
2024-10-16 11:06:29 +10:00
|
|
|
&& chmod 644 /etc/logrotate.d/nginx-proxy-manager \
|
|
|
|
|
&& /tmp/install-s6 "${TARGETPLATFORM}" \
|
2024-12-24 08:57:54 +10:00
|
|
|
&& rm -f /tmp/install-s6 \
|
|
|
|
|
&& chmod 644 -R /root/.cache
|
2024-10-16 11:06:29 +10:00
|
|
|
|
2026-05-25 12:40:10 +10:00
|
|
|
# Copy test CA cert for use in container and add to trusted certs from a self-signed CA
|
2024-10-16 11:06:29 +10:00
|
|
|
COPY --from=testca /home/step/certs/root_ca.crt /etc/ssl/certs/NginxProxyManager.crt
|
2026-05-25 12:40:10 +10:00
|
|
|
WORKDIR /etc/ssl/certs
|
|
|
|
|
RUN ln -s NginxProxyManager.crt 1d0e3f10.0 && update-ca-certificates
|
|
|
|
|
|
|
|
|
|
WORKDIR /root
|
2020-02-19 15:55:06 +11:00
|
|
|
|
2021-04-29 08:28:40 +10:00
|
|
|
EXPOSE 80 81 443
|
2021-02-07 09:52:37 -05:00
|
|
|
ENTRYPOINT [ "/init" ]
|