This is a repository for Alpine Docker images of ModSecurity library.
Note that all Docker images in this repository are built on alpine base images
with stock Apache or Nginx APK packages.
Hence our images may not be not compatible with the ones based on httpd:alpine or nginx:alpine
which build servers from source code.
Available versions are:
For Apache or Nginx versions, please refer stock APK packages in each alpine image.
To copy ModSecurity from this image to yours not as base image, add the following to your Dockerfile:
# Replace v2.9.3-alpine3.10 with the version you want in the following
COPY --from=daverona/modsecurity:v2.9.3-alpine3.10 /usr/lib/apache2/mod_security2.so /usr/lib/apache2/mod_security2.so
COPY --from=daverona/modsecurity:v2.9.3-alpine3.10 /etc/apache2/conf.d/modsecurity.conf /etc/apache2/conf.d/modsecurity.conf
COPY --from=daverona/modsecurity:v2.9.3-alpine3.10 /etc/modsecurity.d /etc/modsecurity.d
COPY --from=daverona/modsecurity:v2.9.3-alpine3.10 /usr/local/ssdeep/*/lib /usr/local/lib
COPY --from=daverona/modsecurity:v2.9.3-alpine3.10 /usr/local/ssdeep/*/bin /usr/local/bin
RUN true \
# Remove static libfuzzy library files (i.e. libfuzzy.a and libfuzzy.la)
&& rm -rf /usr/local/lib/libfuzzy.a /usr/local/lib/libfuzzy.la \
# Rebuild library cache for ssdeep
# @see https://stackoverflow.com/a/39459749
&& ldconfig /usr/local/lib /usr/lib /lib \
# Install modsecurity dependencies
&& apk add --no-cache \
apache2 \
libcurl \
libxml2 \
lua5.3 \
libpcrecpp \
yajl
Content type
Image
Digest
Size
8.4 MB
Last updated
over 6 years ago
docker pull daverona/modsecurity:v2.9.3-alpine3.12