Skip to content

Commit 8bba4df

Browse files
committed
Add some nice utlities to the image
Signed-off-by: Samuel Monson <[email protected]>
1 parent e0fc2e5 commit 8bba4df

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Containerfile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,23 @@ RUN pdm use -p /src -f /opt/app-root \
3636
# Prod image
3737
FROM $BASE_IMAGE
3838

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+
3951
# Add guidellm bin to PATH
4052
# Argument defaults can be set with GUIDELLM_<ARG>
4153
ENV HOME="/home/guidellm" \
4254
GUIDELLM_OUTPUT_PATH="/results/benchmarks.json"
4355

44-
# Make sure root is the primary group
45-
USER 1001:0
46-
4756
# Create the user home dir
4857
WORKDIR $HOME
4958

0 commit comments

Comments
 (0)