Workdir and User updated for docker images

This commit is contained in:
Gonzalo Acuña
2022-03-15 16:17:10 -03:00
parent 31b44f3627
commit a31d5c7c1a
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -58,10 +58,12 @@ RUN chmod 700 /entrypoint.sh
RUN chmod 700 /wazuh_app_config.sh
COPY --from=builder --chown=1000:1000 /usr/share/wazuh-dashboard /usr/share/wazuh-dashboard
COPY --from=builder --chown=1000:1000 /var/log/wazuh-dashboard /var/log/wazuh-dashboard
COPY --from=builder --chown=1000:1000 /run/wazuh-dashboard /run/wazuh-dashboard
COPY --from=builder --chown=1000:1000 /etc/wazuh-dashboard /etc/wazuh-dashboard
WORKDIR /usr/share/wazuh-dashboard/
USER wazuh-dashboard
# Services ports
EXPOSE 443
+2
View File
@@ -62,6 +62,8 @@ RUN mkdir -p /var/lib/wazuh-indexer && chown 1000:1000 /var/lib/wazuh-indexer &&
mkdir -p /run/wazuh-indexer && chown 1000:1000 /run/wazuh-indexer && \
mkdir -p /var/log/wazuh-indexer && chown 1000:1000 /var/log/wazuh-indexer
USER wazuh-indexer
# Services ports
EXPOSE 9200