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