@@ -13,9 +13,6 @@ FROM $BASE_IMAGE as builder
13
13
# Ensure files are installed as root
14
14
USER root
15
15
16
- # Copy repository files
17
- COPY / /opt/app-root/src
18
-
19
16
# Set correct build type for versioning
20
17
ENV GUIDELLM_BUILD_TYPE=$GUIDELLM_BUILD_TYPE
21
18
@@ -27,6 +24,9 @@ RUN apt-get update \
27
24
# disable pdm update check
28
25
ENV PDM_CHECK_UPDATE=false
29
26
27
+ # Copy repository files
28
+ COPY / /opt/app-root/src
29
+
30
30
# Create a venv and install guidellm
31
31
RUN python3 -m venv /opt/app-root/guidellm \
32
32
&& pdm use -p /opt/app-root/src -f /opt/app-root/guidellm \
@@ -35,9 +35,6 @@ RUN python3 -m venv /opt/app-root/guidellm \
35
35
# Prod image
36
36
FROM $BASE_IMAGE
37
37
38
- # Copy the virtual environment from the builder stage
39
- COPY --from=builder /opt/app-root/guidellm /opt/app-root/guidellm
40
-
41
38
# Add guidellm bin to PATH
42
39
# Argument defaults can be set with GUIDELLM_<ARG>
43
40
ENV HOME="/home/guidellm" \
@@ -60,5 +57,8 @@ VOLUME /results
60
57
LABEL org.opencontainers.image.source="https://github.com/vllm-project/guidellm" \
61
58
org.opencontainers.image.description="GuideLLM Performance Benchmarking Container"
62
59
60
+ # Copy the virtual environment from the builder stage
61
+ COPY --from=builder /opt/app-root/guidellm /opt/app-root/guidellm
62
+
63
63
ENTRYPOINT [ "/opt/app-root/guidellm/bin/guidellm" ]
64
64
CMD [ "benchmark" , "run" ]
0 commit comments