mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-03 05:57:25 +00:00
qemu: add CACHE_TIMEOUT
Add docker ARG to provide a date to invalid cache, if the date changes the image will be rebuild. This is required to keep build dependencies with security fixes, but still take advantage of build qemu faster using docker cache. Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
This commit is contained in:
parent
98d01ce6b9
commit
5493517b4f
@ -12,6 +12,12 @@ ARG QEMU_TARBALL
|
||||
ARG PREFIX
|
||||
|
||||
WORKDIR /root/qemu
|
||||
|
||||
# CACHE_TIMEOUT: date to invalid cache, if the date changes the image will be rebuild
|
||||
# This is required to keep build dependencies with security fixes.
|
||||
ARG CACHE_TIMEOUT
|
||||
RUN echo "$CACHE_TIMEOUT"
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y
|
||||
RUN apt-get --no-install-recommends install -y \
|
||||
apt-utils \
|
||||
|
Loading…
Reference in New Issue
Block a user