From 2413eac6d312fcabb9373566b9caa839ac90f71f Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Mon, 23 Jan 2023 11:26:51 +0100 Subject: [PATCH] Update dependencies --- Dockerfile | 13 ++++++++----- requirements.txt | 12 ++++++------ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index f8b5281..247f315 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ # WSGI service environment -FROM sourcepole/qwc-uwsgi-base:alpine-v2021.12.16 - -# Required for psychopg, --> https://github.com/psycopg/psycopg2/issues/684 -RUN apk add --no-cache --update postgresql-dev gcc python3-dev musl-dev +FROM sourcepole/qwc-uwsgi-base:alpine-v2022.01.26 ADD . /srv/qwc_service -RUN pip3 install --no-cache-dir -r /srv/qwc_service/requirements.txt + +# postgresql-dev g++ python3-dev: Required for psycopg2-binary +RUN \ + apk add --no-cache --update --virtual runtime-deps postgresql-libs && \ + apk add --no-cache --update --virtual build-deps postgresql-dev g++ python3-dev && \ + pip3 install --no-cache-dir -r /srv/qwc_service/requirements.txt && \ + apk del build-deps diff --git a/requirements.txt b/requirements.txt index 6004e79..e1e933e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -Flask==1.0.2 -werkzeug==0.16.1 -python-dotenv==0.13.0 -Flask-JWT-Extended==3.5.1 -flask-restx==0.2.0 -qwc-services-core==1.2.7 +Flask==2.0.2 +werkzeug==2.0.2 +python-dotenv==0.19.2 +Flask-JWT-Extended==4.3.1 +flask-restx==0.5.1 +qwc-services-core==1.3.14