If we apt installafterCOPY, we're going to end up re-installing the same thing whenever we build.
If we do it before, then the resulting image will be cached, and the COPY will run on top of the cached image.
(Note: I haven't actually used the Dockerfile. I just spotted the comment and knew the fix.)
If we
apt install
afterCOPY
, we're going to end up re-installing the same thing whenever we build. If we do it before, then the resulting image will be cached, and theCOPY
will run on top of the cached image. (Note: I haven't actually used the Dockerfile. I just spotted the comment and knew the fix.)