diff --git a/Dockerfile b/Dockerfile index bc134b08da777be4d1889d0f07bcc4c4c12ab1a6..a37188d204f3c917068e9e4d0ab716909e85eded 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,12 @@ COPY --from=build /build/public /var/www/html # |-------------------------------------------------------------------------- RUN a2enmod headers rewrite +# |-------------------------------------------------------------------------- +# | install bad bot blocklist +# |-------------------------------------------------------------------------- +ADD ["https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/install-apacheblocker.sh", "/tmp/"] +RUN apt update && apt install -y wget && chmod +x /tmp/install-apacheblocker.sh && /tmp/install-apacheblocker.sh + # |-------------------------------------------------------------------------- # | expose http port # |--------------------------------------------------------------------------