Skip to content

Commit ac88f99

Browse files
committed
Docker: T7568: add apt-get update as last command
Some of GitHub actions were relying on cache from apt-get update being available. My previous changes broke those GitHub actions. Add `apt-get update` as one of last commands, which adds ~20Mb, but still 2.04Gb -> 2.01Gb for vyos-build comparing with Dockerfile without cache cleaning. No changes for vyos image as I hope it is not used in any automatic scripts that use `apt-get install` without prior `apt-get update`.
1 parent 671464f commit ac88f99

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ RUN rm -rf /tmp/*
334334
# Remove cleanup script so that in-container apt-get install uses cache
335335
RUN rm /etc/apt/apt.conf.d/clean
336336

337+
# Add cache once as it is needed by some builds in GitHub Actions
338+
RUN apt-get update
339+
337340
# Disable mouse in vim
338341
RUN printf "set mouse=\nset ttymouse=\n" > /etc/vim/vimrc.local
339342

0 commit comments

Comments
 (0)