mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-02-19 05:44:50 +01:00
Remove docker container after the build is complete
This commit is contained in:
parent
718c25f43e
commit
80eb4300e4
|
|
@ -35,7 +35,7 @@ if ! findmnt ${pkgcache} >/dev/null; then
|
|||
fi
|
||||
|
||||
# Run the build process in the container
|
||||
docker run --user 0:0 --privileged -it --workdir /workspace \
|
||||
docker run --rm --user 0:0 --privileged -it --workdir /workspace \
|
||||
--volume=${repodir}:/workspace \
|
||||
--volume=${pkgcache}:/var/cache/pacman/pkg \
|
||||
${dockerimg} setarch ${sysrescuearch} /bin/bash /workspace/build.sh "$@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue