File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -20,23 +20,26 @@ FROM $BASE_IMAGE
20
20
COPY --from=builder /opt/app-root/guidellm /opt/app-root/guidellm
21
21
22
22
# Add guidellm bin to PATH
23
- ENV PATH="/opt/app-root/guidellm/bin:$PATH"
23
+ # Argument defaults can be set with GUIDELLM_<ARG>
24
+ ENV HOME="/home/guidellm" \
25
+ PATH="/opt/app-root/guidellm/bin:$PATH" \
26
+ GUIDELLM_OUTPUT_PATH="/results/benchmarks.json"
24
27
25
28
# Create a non-root user
26
- RUN useradd -md /results guidellm
29
+ RUN useradd -Md $HOME -g root guidellm
27
30
28
31
# Switch to non-root user
29
32
USER guidellm
30
33
31
- # Set working directory
32
- WORKDIR /results
34
+ # Create the user home dir
35
+ WORKDIR $HOME
36
+
37
+ # Create a volume for results
38
+ VOLUME /results
33
39
34
40
# Metadata
35
41
LABEL org.opencontainers.image.source="https://github.com/vllm-project/guidellm" \
36
42
org.opencontainers.image.description="GuideLLM Performance Benchmarking Container"
37
43
38
- # Argument defaults can be set with GUIDELLM_<ARG>
39
- ENV GUIDELLM_OUTPUT_PATH="/results/benchmarks.json"
40
-
41
44
ENTRYPOINT [ "/opt/app-root/guidellm/bin/guidellm" ]
42
45
CMD [ "benchmark" , "run" ]
You can’t perform that action at this time.
0 commit comments