Revert "Create litellm user to fix issue with prisma in k8s "

This commit is contained in:
Krish Dholakia 2024-06-25 18:19:24 -07:00 committed by GitHub
parent 45c748475b
commit ac1f343487
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,27 +9,6 @@ FROM $LITELLM_BUILD_IMAGE as builder
# Set the working directory to /app
WORKDIR /app
ARG LITELLM_USER=litellm LITELLM_UID=1729
ARG LITELLM_GROUP=litellm LITELLM_GID=1729
RUN groupadd \
--gid ${LITELLM_GID} \
${LITELLM_GROUP} \
&& useradd \
--create-home \
--shell /bin/sh \
--gid ${LITELLM_GID} \
--uid ${LITELLM_UID} \
${LITELLM_USER}
# Allows user to update python install.
# This is necessary for prisma.
RUN chown -R ${LITELLM_USER}:${LITELLM_GROUP} /usr/local/lib/python3.11
# Set the HOME var forcefully because of prisma.
ENV HOME=/home/${LITELLM_USER}
USER ${LITELLM_USER}
# Install build dependencies
RUN apt-get clean && apt-get update && \
apt-get install -y gcc python3-dev && \