This commit is contained in:
Anthony Rose 2023-03-21 14:41:20 +00:00
parent 9cf1280a9f
commit be1b674263

View file

@ -20,7 +20,7 @@ sudo rm -fr ./rootfs/var/lib/apt/lists/*
sudo tar czf rootfs.tar.gz -C ./rootfs . sudo tar czf rootfs.tar.gz -C ./rootfs .
cat << __EOF__ | sudo tee Containerfile cat << __EOF__ | sudo tee Containerfile
FROM scratch FROM scratch
ADD rootfs.tar.gz ADD rootfs.tar.gz /
CMD ["/bin/bash"] CMD ["/bin/bash"]
__EOF__ __EOF__
podman build -t mydebian:latest .</code></pre> podman build -t mydebian:latest .</code></pre>