diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a3aa5c1..61093b6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,11 +13,15 @@ All notable changes to this project will be documented in this file. - New Logstash entrypoint added. ([#135](https://github.com/wazuh/wazuh-docker/pull/135/files)) - Welcome screen management. ([#133](https://github.com/wazuh/wazuh-docker/pull/133)) - ### Changed - Update to Wazuh version 3.8.2. ([#105](https://github.com/wazuh/wazuh-docker/pull/105)) +### Removed + +- Remove alerts created in build time. ([#137](https://github.com/wazuh/wazuh-docker/pull/137)) + + ## Wazuh Docker v3.8.1_6.5.4 ### Changed diff --git a/wazuh/Dockerfile b/wazuh/Dockerfile index 1031c1d0..ff9a940d 100644 --- a/wazuh/Dockerfile +++ b/wazuh/Dockerfile @@ -17,7 +17,8 @@ RUN set -x && echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee / RUN add-apt-repository universe && apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \ apt-get --no-install-recommends --no-install-suggests -y install openssl postfix bsd-mailx python-boto python-pip \ apt-transport-https vim expect nodejs python-cryptography mailutils libsasl2-modules wazuh-manager=${WAZUH_VERSION} \ - wazuh-api=${WAZUH_VERSION} && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + wazuh-api=${WAZUH_VERSION} && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -f \ + /var/ossec/logs/alerts/*/*/*.log && rm -f /var/ossec/logs/alerts/*/*/*.json # Adding first run script and entrypoint COPY config/data_dirs.env /data_dirs.env