diff --git a/CHANGELOG.md b/CHANGELOG.md index c2edeffe..3ea3cefb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- Delete setcap command on deprecated file ([#2345](https://github.com/wazuh/wazuh-docker/pull/2345)) - Modify the choice of a correct tag ([#2313](https://github.com/wazuh/wazuh-docker/pull/2313)) - Artifact URL download fix ([#2306](https://github.com/wazuh/wazuh-docker/pull/2306)) - Change API query method. ([#2275](https://github.com/wazuh/wazuh-docker/pull/2275)) diff --git a/build-docker-images/wazuh-dashboard/Dockerfile b/build-docker-images/wazuh-dashboard/Dockerfile index d006b51f..98729e54 100644 --- a/build-docker-images/wazuh-dashboard/Dockerfile +++ b/build-docker-images/wazuh-dashboard/Dockerfile @@ -24,7 +24,6 @@ RUN mkdir -p $INSTALL_DIR/data/wazuh && chmod -R 775 $INSTALL_DIR/data/wazuh RUN mkdir -p $INSTALL_DIR/data/wazuh/config && chmod -R 775 $INSTALL_DIR/data/wazuh/config RUN mkdir -p $INSTALL_DIR/data/wazuh/logs && chmod -R 775 $INSTALL_DIR/data/wazuh/logs RUN setcap 'cap_net_bind_service=-ep' /usr/share/wazuh-dashboard/node/bin/node -RUN setcap 'cap_net_bind_service=-ep' /usr/share/wazuh-dashboard/node/fallback/bin/node ################################################################################ # Build stage 1 (the current Wazuh dashboard image): @@ -63,13 +62,13 @@ RUN yum install shadow-utils -y && \ yum clean all && \ getent group $GROUP || groupadd -r -g 1000 $GROUP && \ useradd --system \ - --uid 1000 \ - --no-create-home \ - --home-dir $INSTALL_DIR \ - --gid $GROUP \ - --shell /sbin/nologin \ - --comment "$USER user" \ - $USER && \ + --uid 1000 \ + --no-create-home \ + --home-dir $INSTALL_DIR \ + --gid $GROUP \ + --shell /sbin/nologin \ + --comment "$USER user" \ + $USER && \ chmod 700 /entrypoint.sh && \ chmod 700 /wazuh_dashboard_config.sh && \ mkdir -p $INSTALL_DIR && \