From 21a984bed4919cae0d0ca8a0a28320be50c582c3 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:07:33 +0100 Subject: [PATCH] Update Dockerfile to install required build tools For some reason uwsgi doens't ship with wheels --- Dockerfile | 4 ++++ requirements/base.txt | 2 +- requirements/ci.txt | 2 +- requirements/dev.txt | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bdf094e0..48b7915c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,13 @@ FROM python:3.10-slim-bullseye AS backend-build RUN apt-get update && apt-get install -y --no-install-recommends \ + pkg-config \ + build-essential \ + git \ libpq-dev \ && rm -rf /var/lib/apt/lists/* + WORKDIR /app COPY ./requirements /app/requirements diff --git a/requirements/base.txt b/requirements/base.txt index 3a1d66d3..feaa7bd3 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -20,7 +20,7 @@ certifi==2020.12.5 # elastic-apm # requests # sentry-sdk -cffi==1.14.6 +cffi==1.16.0 # via cryptography chardet==4.0.0 # via requests diff --git a/requirements/ci.txt b/requirements/ci.txt index 8085aa14..0f320a93 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -27,7 +27,7 @@ certifi==2020.12.5 # elastic-apm # requests # sentry-sdk -cffi==1.14.6 +cffi==1.16.0 # via # -r requirements/base.txt # cryptography diff --git a/requirements/dev.txt b/requirements/dev.txt index c1531f93..1f2e664a 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -41,7 +41,7 @@ certifi==2020.12.5 # elastic-apm # requests # sentry-sdk -cffi==1.14.6 +cffi==1.16.0 # via # -r requirements/ci.txt # cryptography