wp-modsec

This commit is contained in:
Jakub K
2024-03-23 18:38:01 +01:00
commit 267ff54094
3 changed files with 321 additions and 0 deletions

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM wordpress:latest
# Copy the files from the host to the container
RUN apt-get update && apt-get install -y libapache2-mod-security2 \
&& rm -rf /var/lib/apt/lists/*
COPY modsecurity.conf /etc/modsecurity/modsecurity.conf
COPY .htaccess /var/www/html/.htaccess