From c9861ddbfcee57e39186fcfcecbae4649053e715 Mon Sep 17 00:00:00 2001 From: Jake Charman Date: Wed, 4 Jun 2025 22:12:33 +0100 Subject: [PATCH] Bump setuptools to avoid GHSA-5rjg-fvgr-3xxf --- Dockerfile | 1 + src/requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index a03a187..bd81dac 100755 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ RUN apt-get update RUN apt-get -y install libapache2-mod-wsgi-py3 python3 python3-pip COPY src/requirements.txt /var/www/jc/requirements.txt RUN pip3 install --upgrade pip --break-system-packages +RUN pip3 freeze | sed 's/==.*//' #| xargs pip3 install --upgrade --break-system-packages RUN pip3 install -r /var/www/jc/requirements.txt || pip3 install --break-system-packages -r /var/www/jc/requirements.txt COPY --chown=www-data:www-data config/httpd.conf /usr/local/apache2/conf/httpd.conf COPY --chown=www-data:www-data src/ /var/www/jc diff --git a/src/requirements.txt b/src/requirements.txt index be7907e..53d73cd 100755 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,3 +1,4 @@ +setuptools>=78.1.1 flask>=2.2.3 flask-markdown>=0.3 markdown>=3.4.1