Dockerfile 688 B

12345678910111213141516171819202122232425262728
  1. FROM jc21/nginx-full:certbot-node
  2. LABEL maintainer="Jamie Curnow <[email protected]>"
  3. ENV S6_LOGGING=0 \
  4. SUPPRESS_NO_CONFIG_WARNING=1 \
  5. S6_FIX_ATTRS_HIDDEN=1
  6. RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
  7. && apt-get update \
  8. && apt-get install -y jq python3-pip logrotate \
  9. && apt-get clean \
  10. && rm -rf /var/lib/apt/lists/*
  11. # Task
  12. RUN cd /usr \
  13. && curl -sL https://taskfile.dev/install.sh | sh \
  14. && cd /root
  15. COPY rootfs /
  16. RUN rm -f /etc/nginx/conf.d/production.conf
  17. RUN chmod 644 /etc/logrotate.d/nginx-proxy-manager
  18. # s6 overlay
  19. COPY scripts/install-s6 /tmp/install-s6
  20. RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -f /tmp/install-s6
  21. EXPOSE 80 81 443
  22. ENTRYPOINT [ "/init" ]