From fda25cac9a9477b1950a7c6e894778cbd716c4c5 Mon Sep 17 00:00:00 2001 From: Fede Tux Date: Tue, 9 Jan 2024 12:28:18 -0300 Subject: [PATCH] Add git to dev docker image --- docker/images/wi-dev.Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/images/wi-dev.Dockerfile b/docker/images/wi-dev.Dockerfile index 7e7f16fbba42c..215b956d14a82 100644 --- a/docker/images/wi-dev.Dockerfile +++ b/docker/images/wi-dev.Dockerfile @@ -6,11 +6,13 @@ RUN gradle clean FROM eclipse-temurin:17-jdk-alpine -RUN addgroup -g 1000 wazuh-indexer && \ +RUN apk add git && \ + addgroup -g 1000 wazuh-indexer && \ adduser -u 1000 -G wazuh-indexer -D -h /home/wazuh-indexer wazuh-indexer && \ chmod 0775 /home/wazuh-indexer && \ chown -R 1000:0 /home/wazuh-indexer USER wazuh-indexer COPY --from=builder --chown=1000:0 /home/wazuh-indexer/app /home/wazuh-indexer/app WORKDIR /home/wazuh-indexer/app +RUN git config --global --add safe.directory /home/wazuh-indexer/app EXPOSE 9200 9300