Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit e7bddb9

Browse files
committed
back to buster image
1 parent 1e81b38 commit e7bddb9

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
FROM fedora:34
1+
FROM debian:buster-slim
22

33
LABEL maintainer "NoEnv"
44
LABEL version "4.1.5"
55
LABEL description "Wazuh Agent"
66

7-
COPY entrypoint.sh ossec.conf wazuh.repo /
7+
COPY entrypoint.sh ossec.conf /
88

9-
RUN mv /wazuh.repo /etc/yum.repos.d/wazuh.repo && \
10-
rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH && \
11-
dnf -y --setopt=tsflags=nodocs install procps-ng inotify-tools python-docker wazuh-agent && \
9+
RUN apt-get update && apt-get install -y \
10+
procps curl apt-transport-https gnupg2 inotify-tools python-docker && \
11+
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add - && \
12+
echo "deb https://packages.wazuh.com/4.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list && \
13+
apt-get update && \
14+
apt-get install -y wazuh-agent=4.1.5-1 && \
1215
mv /ossec.conf /var/ossec/etc/ && \
13-
dnf clean all && \
14-
rm -rf /var/lib/dnf/repos/* /tmp/* /var/tmp/* /var/log/*.log
16+
rm -rf /var/lib/apt/lists/*
1517

1618
ENTRYPOINT ["/entrypoint.sh"]

wazuh.repo

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)