commit 1ad7a405c1f0991d29fbd002f4242fbfe436eaa6 Author: Blagovest Petrov Date: Mon Feb 1 15:28:26 2021 +0200 First commit Signed-off-by: Blagovest Petrov diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..02c6a93 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:stable + +WORKDIR /var/tmp + +ENV rootfs=rootfs + +RUN apt-get update && apt-get install debootstrap + +RUN debootstrap --arch=i386 sarge ${rootfs} http://archive.debian.org/debian/ \ + && rm -rf $rootfs/{dev,proc} \ + && mkdir -p $rootfs{dev,proc} + +RUN tar --numeric-owner -caf rootfs.tar.xz -C $rootfs --transform='s,^./,,' . + +FROM scratch + +COPY --from=0 /var/tmp/rootfs.tar.xz . \ No newline at end of file