-
Notifications
You must be signed in to change notification settings - Fork 481
docker: reuse base docker image #3748
Copy link
Copy link
Closed
Description
we have locked all requirements, so it's possible to reuse base docker image between versions.
we can build a base docker image based on ${{ hashFiles('requirements-docker.txt') }} and re-used it, just build flexget wheel if previous base docker image exists. generate base docker image tag hash, try pull, and build new one if not exist, then push it.
Pro
So if we we only change one source file and push a new version, users only need to pull very small layers with only source code change, most size of docker image will be reused from previous pulled docker image.
base --- requiremenets --- src # version 0.0.1
|----- new src # version 0.0.2
Con
developers can't build docker image from repo directly, them need to build base docker image like ci workflow.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels