This is an example of a devcontainer that prebuilds all features in /.devcontainer/devcontainer.json
This is pushed to your remote container registry for reuse
When the GitHub Action called job-devcontainer-build.yaml it will look at the file ./devcontainer/devcontainer.json and using the devcontainer CLI prebuild all features into a custom image and push to docker hub.
https://containers.dev/guide/prebuild
For future changes to work, there is a GitHub Action included to 'prebuild' the dev container. The below SECRETS need to be set in this repo for docker push to work
- REGISTRY_USER
- REGISTRY_TOKEN
This branch was manually built and pushed locally to https://hub.docker.com/repository/docker/chrismckelt/devcontainer-prebuild-template
devcontainer build --workspace-folder . --image-name chrismckelt/devcontainer-prebuild-template
docker push chrismckelt/devcontainer-prebuild-template:latest