FROM alpine COPY compile.sh /tmp/compile.sh RUN chmod +x /tmp/compile.sh && \ /tmp/compile.sh && \ rm -rf /tmp/* COPY entrypoint.sh /opt/entrypoint.sh COPY confs/ /opt/confs COPY scripts/ /opt/scripts COPY misc/*.mmdb /etc/nginx/geoip.mmdb COPY fail2ban/ /opt/fail2ban RUN apk --no-cache add php7-fpm certbot libstdc++ libmaxminddb geoip pcre yajl fail2ban clamav apache2-utils && \ chmod +x /opt/entrypoint.sh /opt/scripts/* && \ mkdir /opt/entrypoint.d && \ adduser -h /dev/null -g '' -s /sbin/nologin -D -H nginx VOLUME /www /http-confs /server-confs /modsec-confs /modsec-crs-confs EXPOSE 80/tcp 443/tcp ENTRYPOINT ["/opt/entrypoint.sh"]