File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,17 @@ COPY / /opt/app-root/src
20
20
ENV GUIDELLM_BUILD_TYPE=$GUIDELLM_BUILD_TYPE
21
21
22
22
# 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
25
29
26
30
# Create a venv and install guidellm
27
31
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
29
34
30
35
# Prod image
31
36
FROM $BASE_IMAGE
You can’t perform that action at this time.
0 commit comments