diff options
author | Ben Lubar <ben.lubar+github@gmail.com> | 2019-03-08 09:12:48 -0600 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-08 16:12:48 +0100 |
commit | d36fcb54c408536f15de1346f70b4a8c78e9cb34 (patch) | |
tree | 2c19aa069416d593e292c4f41a5e4edd657abdf4 /nanobox | |
parent | 42e733681aef45c9e6224aed288e4c845782c173 (diff) |
Re-organize Dockerfile to improve incremental builds. (#10212)
- Always run apt update before any other apt command. (This fixes incremental builds failing if a remote package is updated.) - Only copy dependency lists before installing dependencies. (This means editing code doesn't force all dependencies to be re-downloaded.) - Delete cache in the same layer that it is created. (Otherwise, deleting cache *increases* the size of the image on non-squashed builds.) - Move the installation of some static dependencies to *before* Mastodon code is imported to Docker.
Diffstat (limited to 'nanobox')
0 files changed, 0 insertions, 0 deletions