Skip to content

Instantly share code, notes, and snippets.

@0xBigBoss
Created October 13, 2023 03:30
Show Gist options
  • Save 0xBigBoss/a932b3f7282b6529c4997fbd85986b7d to your computer and use it in GitHub Desktop.
Save 0xBigBoss/a932b3f7282b6529c4997fbd85986b7d to your computer and use it in GitHub Desktop.
Analyze a docker context and what files would be included in your docker image. Creates a directory at /tmp/docker-context.
printf 'FROM scratch\nCOPY . /' | DOCKER_BUILDKIT=1 docker build -f - -o /tmp/docker-context .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment