jupyterhub / repo2docker-action

A GitHub action to build data science environment images with repo2docker and push them to registries.
MIT License
140 stars 27 forks source link

use github actions cache for docker build #126

Open itcarroll opened 1 month ago

itcarroll commented 1 month ago

Is your feature request related to a problem? Please describe. The repo2docker-action takes a while, and most of that time is spent building docker layers that have not changed. On a local system, Docker would use its layer cache and take less time.

Describe the solution you'd like GitHub Actions provides a way to persist a cache from a runner, and Docker appears to have documentation about using it at: https://docs.docker.com/build/cache/backends/gha/. Could the repo2docker-action integrate such a mechanism, so that Docker images could be built using a cache?