Commands and dependencies adapted

This commit is contained in:
David Correa Rodríguez
2024-02-20 10:33:29 +01:00
parent ec9076261f
commit 98037bf25c
5 changed files with 25 additions and 22 deletions
+5 -4
View File
@@ -1,10 +1,10 @@
# Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2)
FROM ubuntu:jammy AS builder
FROM amazonlinux:2023.3.20240131.0 AS builder
ARG WAZUH_VERSION
ARG WAZUH_TAG_REVISION
RUN apt-get update -y && apt-get install curl openssl xz-utils -y
RUN yum install curl-minimal openssl xz tar shadow-utils -y
COPY config/opensearch.yml /
@@ -27,15 +27,16 @@ RUN bash config.sh
#
# Copy wazuh-indexer from stage 0
# Add entrypoint
################################################################################
FROM ubuntu:jammy
FROM amazonlinux:2023.3.20240131.0
ENV USER="wazuh-indexer" \
GROUP="wazuh-indexer" \
NAME="wazuh-indexer" \
INSTALL_DIR="/usr/share/wazuh-indexer"
RUN apt-get update -y && apt-get install curl -y
RUN yum install curl-minimal shadow-utils -y
RUN getent group $GROUP || groupadd -r -g 1000 $GROUP