include pip constraints in Dockerfile

pull/3524/head
KPrasch 2024-07-29 19:21:17 +07:00
parent 073cbd5071
commit 0aa548cd91
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ WORKDIR /code
# Layer 1: Install dependencies
COPY requirements.txt /code
COPY constraints.txt /code
ENV PIP_CONSTRAINT=/code/constraints.txt
RUN pip3 install --no-cache-dir -r requirements.txt
# Layer 2: Install nucypher entrypoint