MISP-Taxii-Server/Dockerfile

23 lines
648 B
Docker
Raw Permalink Normal View History

2018-10-24 18:40:59 +02:00
FROM debian:buster-slim
EXPOSE 9000
RUN apt-get update && \
apt-get -y install python3 python3-pip git build-essential default-libmysqlclient-dev
RUN git clone --recursive https://github.com/MISP/MISP-Taxii-Server
RUN pip3 install libtaxii==1.1.111 mysqlclient gunicorn
WORKDIR /MISP-Taxii-Server/OpenTAXII
RUN python3 setup.py install
WORKDIR /MISP-Taxii-Server
RUN python3 setup.py install
RUN export OPENTAXII_CONFIG=/MISP-Taxii-Server/config.yaml && export PYTHONPATH=.
RUN opentaxii-create-services -c config/services.yaml && opentaxii-create-collections -c config/collections.yaml
ADD ./docker-run.sh /run.sh
CMD /bin/sh /run.sh