Skip to content

Commit 377acb9

Browse files
MorphBonehunterbkcsoft
authored andcommitted
Realy don't cache apk index
Actualy the "-U --no-cache" effectivly is treated as --no-cache was never specified: / # apk -U --no-cache add sed fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz (1/1) Installing sed (4.2.2-r0) Executing busybox-1.25.1-r0.trigger OK: 4 MiB in 12 packages / # ls -la /var/cache/apk/ total 1004 drwxr-xr-x 1 root root 70 May 8 11:08 . drwxr-xr-x 1 root root 29 Mar 3 11:20 .. -rw-r--r-- 1 root root 732807 May 5 07:11 APKINDEX.c51f8f92.tar.gz -rw-r--r-- 1 root root 293014 May 1 12:37 APKINDEX.d09172fd.tar.gz So removing the "-U" fix this behavior.
1 parent ab79069 commit 377acb9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAINTAINER Thomas Boerger <[email protected]>
33

44
EXPOSE 22 3000
55

6-
RUN apk -U --no-cache add \
6+
RUN apk --no-cache add \
77
su-exec \
88
ca-certificates \
99
sqlite \

Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM multiarch/alpine:aarch64-v3.5
22

33
EXPOSE 22 3000
44

5-
RUN apk -U --no-cache add \
5+
RUN apk --no-cache add \
66
su-exec \
77
ca-certificates \
88
sqlite \

Dockerfile.rpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAINTAINER Thomas Boerger <[email protected]>
33

44
EXPOSE 22 3000
55

6-
RUN apk -U --no-cache add \
6+
RUN apk --no-cache add \
77
su-exec \
88
ca-certificates \
99
sqlite \

0 commit comments

Comments
 (0)