File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,18 @@ FROM $BASE_IMAGE as builder
13
13
# Ensure files are installed as root
14
14
USER root
15
15
16
- # Set correct build type for versioning
17
- ENV GUIDELLM_BUILD_TYPE=$GUIDELLM_BUILD_TYPE
18
-
19
16
# Install build tooling
20
17
RUN apt-get update \
21
18
&& apt-get install -y --no-install-recommends git \
22
19
&& pip install --no-cache-dir -U pdm
23
20
24
- # disable pdm update check
25
- ENV PDM_CHECK_UPDATE=false
21
+ # Disable pdm update check
22
+ # Set correct build type for versioning
23
+ ENV PDM_CHECK_UPDATE=false \
24
+ GUIDELLM_BUILD_TYPE=$GUIDELLM_BUILD_TYPE
26
25
27
26
# Copy repository files
27
+ # Do this as late as possible to leverage layer caching
28
28
COPY / /opt/app-root/src
29
29
30
30
# Create a venv and install guidellm
@@ -58,6 +58,7 @@ LABEL org.opencontainers.image.source="https://github.com/vllm-project/guidellm"
58
58
org.opencontainers.image.description="GuideLLM Performance Benchmarking Container"
59
59
60
60
# Copy the virtual environment from the builder stage
61
+ # Do this as late as possible to leverage layer caching
61
62
COPY --from=builder /opt/app-root/guidellm /opt/app-root/guidellm
62
63
63
64
ENTRYPOINT [ "/opt/app-root/guidellm/bin/guidellm" ]
You can’t perform that action at this time.
0 commit comments