From a2d5a23c437044f4e4257a4ae09846652b8c372d Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Tue, 21 Dec 2021 14:26:01 -0700 Subject: [PATCH] docker: Upgrade pip before installing requirements Outdated pip versions require a rust compiler to install the cryptography package. Ensuring that pip is up to date should eliminate the recent buildx errors where a prebuilt cryptography wheel is not available. --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8205987..edfe1a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,15 +6,16 @@ RUN apk --update add \ libxslt-dev \ openssl-dev \ libffi-dev - + COPY requirements.txt . +RUN pip install --upgrade pip RUN pip install --prefix /install --no-warn-script-location --no-cache-dir -r requirements.txt FROM python:3.8-alpine RUN apk add --update --no-cache tor curl bash openrc -# libcurl4-openssl-dev +# libcurl4-openssl-dev ARG config_dir=/config RUN mkdir -p $config_dir