bunkerized-nginx/Dockerfile-i386

27 lines
742 B
Text
Raw Normal View History

2020-10-18 16:26:33 +02:00
FROM i386/nginx:stable-alpine AS builder
2020-10-04 23:20:07 +02:00
2020-10-04 22:19:15 +02:00
COPY compile.sh /tmp/compile.sh
RUN chmod +x /tmp/compile.sh && \
/tmp/compile.sh && \
rm -rf /tmp/*
2020-10-18 16:26:33 +02:00
FROM i386/nginx:stable-alpine
COPY --from=builder /*.so /usr/local/nginx/modules/
2020-10-04 22:19:15 +02:00
COPY entrypoint.sh /opt/entrypoint.sh
COPY confs/ /opt/confs
COPY scripts/ /opt/scripts
COPY fail2ban/ /opt/fail2ban
COPY logs/ /opt/logs
COPY lua/ /opt/lua
2020-10-04 22:19:15 +02:00
2020-10-14 22:46:20 +02:00
RUN apk --no-cache add php7-fpm certbot libstdc++ libmaxminddb geoip pcre yajl fail2ban clamav apache2-utils rsyslog openssl lua libgd && \
2020-10-04 22:19:15 +02:00
chmod +x /opt/entrypoint.sh /opt/scripts/* && \
2020-10-18 16:26:33 +02:00
mkdir /opt/entrypoint.d
2020-10-04 22:19:15 +02:00
VOLUME /www /http-confs /server-confs /modsec-confs /modsec-crs-confs
EXPOSE 80/tcp 443/tcp
ENTRYPOINT ["/opt/entrypoint.sh"]