diff --git a/Dockerfile b/Dockerfile index e0ae2ed091..3a74c46e68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,7 @@ WORKDIR /app USER root # Install build dependencies -RUN apk update && \ - apk add --no-cache gcc python3-dev openssl openssl-dev +RUN apk add --no-cache gcc python3-dev openssl openssl-dev RUN pip install --upgrade pip && \ @@ -52,8 +51,7 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtime USER root # Install runtime dependencies -RUN apk update && \ - apk add --no-cache openssl +RUN apk add --no-cache openssl WORKDIR /app # Copy the current directory contents into the container at /app diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index cc0c434013..f036081549 100644 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -35,7 +35,7 @@ RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt FROM $LITELLM_RUNTIME_IMAGE AS runtime # Update dependencies and clean up -RUN apk update && apk upgrade && rm -rf /var/cache/apk/* +RUN apk upgrade --no-cache WORKDIR /app diff --git a/docker/Dockerfile.database b/docker/Dockerfile.database index f0b5eec8f9..da0326fd2c 100644 --- a/docker/Dockerfile.database +++ b/docker/Dockerfile.database @@ -12,8 +12,7 @@ WORKDIR /app USER root # Install build dependencies -RUN apk update && \ - apk add --no-cache gcc python3-dev openssl openssl-dev +RUN apk add --no-cache gcc python3-dev openssl openssl-dev RUN pip install --upgrade pip && \ @@ -44,8 +43,7 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtime USER root # Install runtime dependencies -RUN apk update && \ - apk add --no-cache openssl +RUN apk add --no-cache openssl WORKDIR /app # Copy the current directory contents into the container at /app