Skip to content

docker: reuse base docker image #3748

@trim21

Description

@trim21

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions