Compare commits

...

2 Commits

Author SHA1 Message Date
John Estabrook
c9b8053f27
Merge pull request #987 from hedrok/docker-build-add-apt-update
Docker: T7568: add apt-get update as last command
2025-07-09 09:49:55 -05:00
Kyrylo Yatsenko
ac88f992f3 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`.
2025-07-09 09:32:57 +03:00

View File

@ -334,6 +334,9 @@ RUN rm -rf /tmp/*
# Remove cleanup script so that in-container apt-get install uses cache
RUN rm /etc/apt/apt.conf.d/clean
# Add cache once as it is needed by some builds in GitHub Actions
RUN apt-get update
# Disable mouse in vim
RUN printf "set mouse=\nset ttymouse=\n" > /etc/vim/vimrc.local