Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Docker build speedup #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

drags
Copy link

@drags drags commented Mar 12, 2020

Small change to Dockerfile layer ordering. Layers which are expected to change infrequently appear earlier in the Dockerfile, reducing the time to make archive for code changes. A make cleandocker target has been added to the Makefile to explicitly delete the docker image when seeking to build from scratch.

The original ordering may have been intentional (as a way of forcing fresh docker images on every code change), this is just intended to make development quicker. Feel free to close without verbose commentary if so.

Re-order docker file so that layers which are unlikely to change between
builds appear first. Layers are now: clamav packages, pip requirements,
and finally lambda code. This means that changing lambda code will not
require re-installing clamav packages or rebuilding the rest of the
image.

Added a cleandocker target to the Makefile in order to explicitly
rebuild from scratch (useful for when an update to clamav packages is
required)
@CLAassistant
Copy link

CLAassistant commented Mar 12, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants