Skip to content

Commit 354ea2b

Browse files
committed
Remove cached packages to optimize size
1 parent 61823f1 commit 354ea2b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Dockerfile.arm32v7

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ RUN pacman-key --populate archlinuxarm
2424

2525
RUN pacman -Suu --noconfirm
2626

27+
RUN rm -rf /var/cache/pacman/pkg/*
28+
2729
# squash layers to optimize image size
2830
FROM scratch
2931
COPY --from=stage2 / .

Dockerfile.arm64v8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ RUN pacman-key --populate archlinuxarm
2424

2525
RUN pacman -Suu --noconfirm
2626

27+
RUN rm -rf /var/cache/pacman/pkg/*
28+
2729
# squash layers to optimize image size
2830
FROM scratch
2931
COPY --from=stage2 / .

0 commit comments

Comments
 (0)