Skip to content

Commit c62588f

Browse files
committed
Use PDM for venv
Signed-off-by: Samuel Monson <[email protected]>
1 parent b9cb5a4 commit c62588f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Containerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ COPY / /opt/app-root/src
2020
ENV GUIDELLM_BUILD_TYPE=$GUIDELLM_BUILD_TYPE
2121

2222
# Install build tooling
23-
RUN apt-get update && apt-get install -y --no-install-recommends \
24-
build-essential git
23+
RUN apt-get update \
24+
&& apt-get install -y --no-install-recommends git \
25+
pip install --no-cache-dir -U pdm
26+
27+
# disable pdm update check
28+
ENV PDM_CHECK_UPDATE=false
2529

2630
# Create a venv and install guidellm
2731
RUN python3 -m venv /opt/app-root/guidellm \
28-
&& /opt/app-root/guidellm/bin/pip install --no-cache-dir /opt/app-root/src
32+
&& pdm use -p /opt/app-root/src -f /opt/app-root/guidellm \
33+
&& pdm install -p /opt/app-root/src --check --prod --no-editable
2934

3035
# Prod image
3136
FROM $BASE_IMAGE

0 commit comments

Comments
 (0)