Create Linux OS ROOTFS
Create an output folder
# mkdir -p /output/
Create rootfs.tar
# cd / # tar cf /output/rootfs.tar --exclude=/proc --exclude=/dev --exclude=/boot --exclude=/run --exclude=/sys --exclude=/output /
Compress tar file with xz
# xz -v -T 0 /output/rootfs.tar
Build Docker Image
Build docker image from scratch with rootfs.tar.xz
FROM scratch
ADD ./rootfs.tar.xz /