Skip to content

Commit

Permalink
Add bash to Docker dev image (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Aug 20, 2024
1 parent 46911ad commit 1fa7e4a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docker/dev/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ RUN gradle clean

FROM eclipse-temurin:17-jdk-alpine
RUN apk add git && \
apk add curl && \
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
apk add curl && \
apk add bash && \
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 /home/wazuh-indexer
WORKDIR /home/wazuh-indexer
Expand Down

0 comments on commit 1fa7e4a

Please sign in to comment.