mirror of
https://github.com/certat/intelmq-docker.git
synced 2025-12-06 17:22:57 +01:00
FIX: Updated Dockerfile
Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
This commit is contained in:
@@ -39,21 +39,25 @@ LABEL org.opencontainers.image.created=$BUILD_DATE \
|
|||||||
|
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
|
||||||
COPY ./intelmq /opt/intelmq
|
COPY ./intelmq /etc/intelmq
|
||||||
COPY ./intelmq-api /opt/intelmq-api
|
COPY ./intelmq-api /etc/intelmq-api
|
||||||
|
|
||||||
RUN useradd -d /opt/intelmq -U -s /bin/bash intelmq \
|
RUN useradd -d /etc/intelmq -U -s /bin/bash intelmq \
|
||||||
&& adduser intelmq sudo \
|
&& adduser intelmq sudo \
|
||||||
&& echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
|
&& echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
|
||||||
&& sudo chown -R intelmq:intelmq /opt/intelmq
|
&& sudo chown -R intelmq:intelmq /etc/intelmq
|
||||||
|
|
||||||
### Install 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 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 --force pymisp[fileobjects,openioc,virustotal] \
|
||||||
&& pip3 install --no-cache-dir -e . \
|
&& pip3 install --no-cache-dir -e . \
|
||||||
&& intelmqsetup
|
&& intelmqsetup
|
||||||
|
|
||||||
|
### Install IntelMQ-API
|
||||||
|
RUN cd /etc/intelmq-api \
|
||||||
|
&& python3 setup.py install
|
||||||
|
|
||||||
ADD entrypoint.sh /opt/entrypoint.sh
|
ADD entrypoint.sh /opt/entrypoint.sh
|
||||||
RUN chmod +x /opt/entrypoint.sh \
|
RUN chmod +x /opt/entrypoint.sh \
|
||||||
&& chown intelmq:intelmq /opt/entrypoint.sh
|
&& chown intelmq:intelmq /opt/entrypoint.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user