Skip to content

Commit 1214094

Browse files
committed
Optimize Dockerfile by cleaning up APK cache after installing dependencies to reduce image size.
Signed-off-by: Victor Chang <[email protected]>
1 parent c0bd446 commit 1214094

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CallbackApp.Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
FROM python:3.10-alpine
1313

14-
RUN apk update && apk upgrade
15-
RUN apk add libcom_err=1.47.1-r1
14+
RUN apk update && \
15+
apk upgrade && \
16+
apk add libcom_err=1.47.1-r1 && \
17+
rm -rf /var/cache/apk/*
1618
WORKDIR /app
1719
COPY src/TaskManager/CallbackApp/app.py ./
1820
COPY src/TaskManager/CallbackApp/requirements.txt ./

0 commit comments

Comments
 (0)