From 9a795a7f601012345c98d3b2db0499fdb32baeb4 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Tue, 1 Mar 2022 19:50:17 +0100 Subject: [PATCH] docker dont pip install cryptography dont install cryptography wheel in alpine docker build as py-cryptography already takes care of this. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 873a74ca..2e0bddb1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,11 +15,13 @@ WORKDIR /opt/recipes COPY requirements.txt ./ -RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev zlib-dev jpeg-dev libwebp-dev libressl-dev libffi-dev cargo openssl-dev openldap-dev && \ +RUN sed -i '/cryptography==/d' ./requirements.txt + +RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev zlib-dev jpeg-dev libwebp-dev libressl-dev python3-dev libffi-dev cargo openldap-dev && \ echo -n "INPUT ( libldap.so )" > /usr/lib/libldap_r.so && \ python -m venv venv && \ /opt/recipes/venv/bin/python -m pip install --upgrade pip && \ - venv/bin/pip install wheel==0.36.2 && \ + venv/bin/pip install wheel==0.37.1 && \ venv/bin/pip install -r requirements.txt --no-cache-dir &&\ apk --purge del .build-deps