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 .