Dockerfile 792 B

1234567891011121314151617181920212223242526272829303132
  1. FROM jc21/alpine-nginx-full:github-openresty-node
  2. LABEL maintainer="Jamie Curnow <[email protected]>"
  3. ENV S6_LOGGING=0
  4. ENV SUPPRESS_NO_CONFIG_WARNING=1
  5. ENV S6_FIX_ATTRS_HIDDEN=1
  6. RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
  7. && rm -rf /etc/nginx \
  8. && apk update \
  9. && apk add python2 certbot jq \
  10. && rm -rf /var/cache/apk/*
  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. # s6 overlay
  18. 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" \
  19. && tar -xzf /tmp/s6-overlay-amd64.tar.gz -C /
  20. EXPOSE 80
  21. EXPOSE 81
  22. EXPOSE 443
  23. CMD [ "/init" ]
  24. HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health