From c4fff4d6d52f86d4a82266f1531893094d0b3977 Mon Sep 17 00:00:00 2001 From: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:00:04 +0200 Subject: [PATCH 1/2] upgrade to python 3.11 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e0aae772..daf0df8ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG PYTHON_VERSION=3.10 +ARG PYTHON_VERSION=3.11 FROM bitnami/python:${PYTHON_VERSION} as build ARG LOGPREP_VERSION=latest From 2f3c3a868d6f391d80d1a8fa8c5f730ab0917dd2 Mon Sep 17 00:00:00 2001 From: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:00:27 +0200 Subject: [PATCH 2/2] fix setuptools version and upgrade in venv --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index daf0df8ee..2c41c84cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,10 @@ ADD . /logprep WORKDIR /logprep RUN curl https://sh.rustup.rs -sSf | bash -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" -RUN python -m pip install --upgrade pip wheel setuptools>=72.2.0 RUN python -m venv /opt/venv # Make sure we use the virtualenv: ENV PATH="/opt/venv/bin:$PATH" +RUN python -m pip install --upgrade pip 'setuptools>=72.2.0' RUN if [ "$LOGPREP_VERSION" = "dev" ]; then pip install .;\ elif [ "$LOGPREP_VERSION" = "latest" ]; then pip install git+https://github.com/fkie-cad/Logprep.git@latest; \