Dockerfile 850 B

1234567891011121314151617181920212223242526272829
  1. FROM nginxproxymanager/nginx-full: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 certbot 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. RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz" \
  20. && tar -xzf /tmp/s6-overlay-amd64.tar.gz -C /
  21. EXPOSE 80 81 443
  22. ENTRYPOINT [ "/init" ]
  23. HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health