Build Docker image from locked dependencies

This commit is contained in:
Seth Michael Larson 2024-07-10 11:48:56 -05:00
parent 8438fe75b3
commit 189b3990de
No known key found for this signature in database
GPG key ID: 1C2A4998AD8019F8

View file

@ -16,12 +16,10 @@ ENV PYTHONPATH "/root/.local/lib/python3.12/site-packages"
COPY requirements requirements
RUN \
PIP_CONSTRAINT=requirements/runtime-prerequisites.txt \
pip install --user --upgrade --no-cache-dir \
-r requirements/runtime-prerequisites.in && \
PIP_CONSTRAINT=requirements/runtime.txt \
pip install --user --upgrade --no-cache-dir --prefer-binary \
-r requirements/runtime.in
pip install --user --upgrade --no-cache-dir \
-r requirements/runtime-prerequisites.txt && \
pip install --user --upgrade --no-cache-dir --prefer-binary \
-r requirements/runtime.txt
WORKDIR /app
COPY LICENSE.md .