diff --git a/Dockerfile b/Dockerfile index 7f6d7eb4..c0fdfd79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,6 @@ RUN bash /usr/local/bin/misp_enable_epel.sh && \ dnf install --setopt=tsflags=nodocs --setopt=install_weak_deps=False -y $(grep -vE "^\s*#" /tmp/packages | tr "\n" " ") && \ alternatives --set python3 /usr/bin/python3.11 && \ alternatives --set python /usr/bin/python3.11 && \ - pip3 --no-cache-dir install --disable-pip-version-check -r /tmp/requirements.txt && \ rm -rf /var/cache/dnf /tmp/packages COPY --from=builder /usr/local/bin/su-exec /usr/local/bin/ diff --git a/bin/misp_install.sh b/bin/misp_install.sh index 1f0af29f..97284f1c 100644 --- a/bin/misp_install.sh +++ b/bin/misp_install.sh @@ -61,6 +61,9 @@ su-exec apache git config core.filemode false cd /var/www/MISP/app/files/ su-exec apache git submodule update --depth 1 --init --recursive . +# Install Python dependencies +pip3 --no-cache-dir install --disable-pip-version-check -r /tmp/requirements.txt + # Install MISP composer dependencies cd /var/www/MISP/app # require exact version of `symfony/polyfill-php80` to keep compatibility, because later version replaces Attribute class :/ diff --git a/requirements.txt b/requirements.txt index fd5dd9e8..ec1d45cc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,3 +11,9 @@ pytz pydeep2 simplejson stix2-patterns>=1.2.0 +taxii2-client +cryptography +/var/www/MISP/app/files/scripts/cti-python-stix2 +/var/www/MISP/app/files/scripts/misp-stix +/var/www/MISP/app/files/scripts/mixbox +/var/www/MISP/app/files/scripts/python-stix