We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0fc2e5 commit 8bba4dfCopy full SHA for 8bba4df
Containerfile
@@ -36,14 +36,23 @@ RUN pdm use -p /src -f /opt/app-root \
36
# Prod image
37
FROM $BASE_IMAGE
38
39
+# Switch to root for installing packages
40
+USER root
41
+
42
+# Install some helpful utilities
43
+RUN dnf install -y --setopt=install_weak_deps=False \
44
+ vi tar rsync \
45
+ && dnf clean all
46
47
+# Switch back to unpriv user
48
+# Root group for k8s
49
+USER 1001:0
50
51
# Add guidellm bin to PATH
52
# Argument defaults can be set with GUIDELLM_<ARG>
53
ENV HOME="/home/guidellm" \
54
GUIDELLM_OUTPUT_PATH="/results/benchmarks.json"
55
-# Make sure root is the primary group
-USER 1001:0
-
56
# Create the user home dir
57
WORKDIR $HOME
58
0 commit comments