diff --git a/Dockerfile b/Dockerfile index 8a5c283..e071867 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM scratch -ADD archlinux.tar / +ADD archlinux.tar.xz / # manually run all alpm hooks that can't be run inside the fakechroot RUN ldconfig && update-ca-trust && locale-gen diff --git a/Makefile b/Makefile index 452fb23..4cfd2ee 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,10 @@ rootfs: hooks tar --numeric-owner --xattrs --acls --exclude-from=exclude -C $(BUILDDIR) -c . -f archlinux.tar rm -rf $(BUILDDIR) alpm-hooks -docker-image: rootfs +compress-rootfs: rootfs + xz archlinux.tar + +docker-image: compress-rootfs docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE) . docker-image-test: docker-image