Skip to content

Commit

Permalink
back to buster image
Browse files Browse the repository at this point in the history
  • Loading branch information
zyclonite committed May 21, 2021
1 parent 1e81b38 commit e7bddb9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
FROM fedora:34
FROM debian:buster-slim

LABEL maintainer "NoEnv"
LABEL version "4.1.5"
LABEL description "Wazuh Agent"

COPY entrypoint.sh ossec.conf wazuh.repo /
COPY entrypoint.sh ossec.conf /

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

ENTRYPOINT ["/entrypoint.sh"]
7 changes: 0 additions & 7 deletions wazuh.repo

This file was deleted.

0 comments on commit e7bddb9

Please sign in to comment.