bhanderson / pbnh

mix between pb and haste
MIT License
12 stars 8 forks source link

Speed up Docker builds #38

Closed tucked closed 3 years ago

tucked commented 3 years ago

If we apt install after COPY, 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.)