Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,28 @@ COPY / /src

# Install guidellm and locked dependencies
RUN pdm use -p /src -f /opt/app-root \
&& pdm install -p /src --check --prod --no-editable
&& pdm install -p /src -G all --check --prod --no-editable

# Prod image
FROM $BASE_IMAGE

# Switch to root for installing packages
USER root

# Install some helpful utilities and deps
RUN dnf install -y --setopt=install_weak_deps=False \
vi tar rsync ffmpeg-free \
&& dnf clean all

# Switch back to unpriv user
# Root group for k8s
USER 1001:0

# Add guidellm bin to PATH
# Argument defaults can be set with GUIDELLM_<ARG>
ENV HOME="/home/guidellm" \
GUIDELLM_OUTPUT_PATH="/results/benchmarks.json"

# Make sure root is the primary group
USER 1001:0

# Create the user home dir
WORKDIR $HOME

Expand Down
Loading