build(Dockerfile.database): remove post hook apt clean up actions (temporary)

This commit is contained in:
Krrish Dholakia 2024-01-10 16:54:04 +05:30
parent 1b72819eb8
commit 655087a61a

View file

@ -9,10 +9,16 @@ FROM $LITELLM_BUILD_IMAGE as builder
# Set the working directory to /app # Set the working directory to /app
WORKDIR /app WORKDIR /app
# Install build dependencies # Temporarily disable APT's post-invoke clean-up actions
RUN mv /etc/apt/apt.conf.d/docker-clean /tmp
# Perform APT operations
RUN apt-get clean && apt-get update && \ RUN apt-get clean && apt-get update && \
apt-get install -y gcc python3-dev apt-get install -y gcc python3-dev
# If needed, re-enable APT's post-invoke actions by moving docker-clean back
# RUN mv /tmp/docker-clean /etc/apt/apt.conf.d/docker-clean
RUN pip install --upgrade pip && \ RUN pip install --upgrade pip && \
pip install build pip install build