mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
hack: add Dockerfile and shell target
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
12
hack/shell
Executable file
12
hack/shell
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
function clean {
|
||||
docker rmi $(cat $iidfile)
|
||||
}
|
||||
|
||||
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
|
||||
docker build --iidfile $iidfile --target demo-env .
|
||||
trap clean EXIT
|
||||
docker run -it --privileged --rm $(cat $iidfile)
|
Reference in New Issue
Block a user