Using ADD to retrieve the package by passes docker build cache. We can RUN a curl command that will get the binary.
That will enable the use of docker cache and dramatically improve the build time. If nothing changed in the context it is instant. If the rundeck release has been updated simply changing the file version will force to redownload
BTW, maybe there is an obvious reason why you used ADD, let me know.
Using ADD to retrieve the package by passes docker build cache. We can RUN a curl command that will get the binary.
That will enable the use of docker cache and dramatically improve the build time. If nothing changed in the context it is instant. If the rundeck release has been updated simply changing the file version will force to redownload
BTW, maybe there is an obvious reason why you used ADD, let me know.