From 4df9aca45e640e38f1f1be5e0f72b0ec5c806f08 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 24 Sep 2024 07:24:59 -0700 Subject: [PATCH] add debian fixes to non root image --- Dockerfile.non_root | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile.non_root b/Dockerfile.non_root index 847df4a57..464f9c2c7 100644 --- a/Dockerfile.non_root +++ b/Dockerfile.non_root @@ -38,6 +38,9 @@ RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt # Runtime stage FROM $LITELLM_RUNTIME_IMAGE AS runtime +# Update dependencies and clean up - handles debian security issue +RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* + WORKDIR /app # Copy the current directory contents into the container at /app COPY . .