From c6b0ba7819e740ff8b81a18e20a8c63d059f6242 Mon Sep 17 00:00:00 2001 From: Stefano Ortolani Date: Fri, 12 May 2023 15:27:33 +0100 Subject: [PATCH] Handle PyMISP migration to poetry --- server/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index d7db484..2e949f1 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -41,6 +41,7 @@ FROM "${DOCKER_HUB_PROXY}debian:bullseye-slim" as python-build libfuzzy-dev \ libffi-dev \ ca-certificates \ + curl \ && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* RUN mkdir /wheels @@ -72,8 +73,9 @@ FROM "${DOCKER_HUB_PROXY}debian:bullseye-slim" as python-build echo "-e ." > requirements.txt; pip3 wheel -r requirements.txt --no-cache-dir -w /wheels/ # install PyMISP + RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local/ python3 - RUN git clone --depth 1 https://github.com/MISP/PyMISP.git; \ - cd PyMISP || exit; python3 setup.py bdist_wheel -d /wheels + cd PyMISP || exit; poetry build -f wheel; cp dist/*.whl /wheels/ # install pydeep RUN git clone --depth 1 https://github.com/coolacid/pydeep.git; \