Skip to content

Commit c6026ea

Browse files
authoredFeb 15, 2025
Optimize Alpine Dockerfile by removing redundant apk commands (BerriAI#5016)
Remove unnecessary `apk update` and manual cache cleanup steps in the Alpine Dockerfile. By using `apk add --no-cache`, we avoid manual cache management, making the Dockerfile simpler and easier to maintain.
1 parent 0ffd99a commit c6026ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎docker/Dockerfile.alpine

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ FROM $LITELLM_BUILD_IMAGE AS builder
1111
WORKDIR /app
1212

1313
# Install build dependencies
14-
RUN apk update && \
15-
apk add --no-cache gcc python3-dev musl-dev && \
16-
rm -rf /var/cache/apk/*
14+
RUN apk add --no-cache gcc python3-dev musl-dev
1715

1816
RUN pip install --upgrade pip && \
1917
pip install build

0 commit comments

Comments
 (0)
Please sign in to comment.