In the local mode, how can I assure that once the packages have been installed on the device, they won't be installed again in the subsequent push

In the local mode, how can I assure that once the packages have been installed on the device, they won’t be installed again in the subsequent push.

For example, I have the command to install boost libraries in my Dockerfile.template like below
RUN apt-get -q update && apt-get install libboost-all-dev

This one installs on every push and takes a lot of time.

Is there any way to prevent it. Please help.

Hi,
That line should only run if you break docker’s cache for this or any previous lines.
Kind regards,
Theodor

1 Like

I now know how to cache while working with Docker files. Thanks