From 6da11893c91dcb9630def627619676e76f4876ac Mon Sep 17 00:00:00 2001 From: Sebastian Waldbauer Date: Sun, 15 Aug 2021 17:27:31 +0200 Subject: [PATCH] FIX: Updated Dockerfile Signed-off-by: Sebastian Waldbauer --- .docker/intelmq-full/Dockerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.docker/intelmq-full/Dockerfile b/.docker/intelmq-full/Dockerfile index cdeafc5..eb0314f 100644 --- a/.docker/intelmq-full/Dockerfile +++ b/.docker/intelmq-full/Dockerfile @@ -39,21 +39,25 @@ LABEL org.opencontainers.image.created=$BUILD_DATE \ WORKDIR /opt -COPY ./intelmq /opt/intelmq -COPY ./intelmq-api /opt/intelmq-api +COPY ./intelmq /etc/intelmq +COPY ./intelmq-api /etc/intelmq-api -RUN useradd -d /opt/intelmq -U -s /bin/bash intelmq \ - && adduser intelmq sudo \ +RUN useradd -d /etc/intelmq -U -s /bin/bash intelmq \ + && adduser intelmq sudo \ && echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \ - && sudo chown -R intelmq:intelmq /opt/intelmq + && sudo chown -R intelmq:intelmq /etc/intelmq ### Install IntelMQ -RUN cd /opt/intelmq \ +RUN cd /etc/intelmq \ && pip3 install hug bs4 pika validators textx lxml url-normalize geolib pyasn pyyaml requests-mock cerberus imbox tld \ && pip3 install --force pymisp[fileobjects,openioc,virustotal] \ && pip3 install --no-cache-dir -e . \ && intelmqsetup +### Install IntelMQ-API +RUN cd /etc/intelmq-api \ + && python3 setup.py install + ADD entrypoint.sh /opt/entrypoint.sh RUN chmod +x /opt/entrypoint.sh \ && chown intelmq:intelmq /opt/entrypoint.sh