From 1ec81924c89b0a477ce3df87f930c51f73c6eace Mon Sep 17 00:00:00 2001 From: Sida Say Date: Thu, 27 Jun 2024 08:43:53 +0700 Subject: [PATCH] imp: improve pi install --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5542b9d..fb99839 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,11 @@ ARG PI_VERSION RUN apt-get update && apt-get install -y python3-dev gcc libpq-dev libkrb5-dev COPY requirements.txt requirements.txt RUN python3 -m venv "$PI_HOME" && . "$PI_HOME/bin/activate" \ + && pip3 install --upgrade pip \ + && pip3 install wheel \ && pip3 install -r https://raw.githubusercontent.com/privacyidea/privacyidea/v"$PI_VERSION"/requirements.txt \ && pip3 install privacyidea=="$PI_VERSION" \ - && pip3 install wheel && pip3 install -r requirements.txt + && pip3 install -r requirements.txt FROM python:$BASE_IMAGE_TAG ARG PI_HOME