Remove docker container after the build is complete

This commit is contained in:
Francois Dupoux 2022-02-27 11:50:26 +00:00
parent 718c25f43e
commit 80eb4300e4

View file

@ -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 "$@"