mirror of
https://github.com/certat/intelmq-docker.git
synced 2025-12-25 10:33:09 +01:00
30 lines
1.2 KiB
Docker
30 lines
1.2 KiB
Docker
FROM certat/intelmq-full:latest
|
|
ENV LANG C.UTF-8
|
|
|
|
LABEL maintainer="Einar <elanfranco@csirtamericas.org>"
|
|
LABEL maintainer="Jeremias <jpretto@cert.unlp.edu.ar>"
|
|
LABEL maintainer="Mateo <mdurante@cert.unlp.edu.ar>"
|
|
RUN sudo apt-get update \
|
|
&& sudo apt-get install -y --no-install-recommends \
|
|
git \
|
|
vim \
|
|
ssh \
|
|
&& sudo rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /opt
|
|
ADD entrypoint-dev.sh /opt/entrypoint-dev.sh
|
|
ADD install_reqs_and_deploy_bots /opt/install_reqs_and_deploy_bots.sh
|
|
RUN sudo chmod +x /opt/entrypoint-dev.sh \
|
|
&& sudo chown intelmq:intelmq /opt/entrypoint-dev.sh
|
|
RUN sudo chmod +x /opt/install_reqs_and_deploy_bots.sh \
|
|
&& sudo chown intelmq:intelmq /opt/install_reqs_and_deploy_bots.sh
|
|
|
|
# This section is just for install all the default bots dependencies
|
|
RUN for req in $(find /etc/intelmq/intelmq/bots/ -name "*REQUIREMENTS.txt"); do cat $req >> /tmp/fullrequirements.txt; done
|
|
RUN cat /tmp/fullrequirements.txt | sort | uniq > /tmp/orderfullrequirements.txt
|
|
RUN cat /tmp/orderfullrequirements.txt |grep -Eo '(^[^#]+)' | xargs -d "\n" -I {} sh -c 'pip3 install "$1"|| exit 0' sh {}
|
|
|
|
USER intelmq:intelmq
|
|
|
|
ENTRYPOINT [ "/opt/entrypoint-dev.sh" ]
|