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.
This commit is contained in:
Ben Busby 2021-12-21 14:26:01 -07:00
parent d02a7d90b9
commit a2d5a23c43
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1

View File

@ -9,6 +9,7 @@ RUN apk --update add \
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