mirror of
https://github.com/luzifer-docker/archlinux.git
synced 2024-11-08 15:30:09 +00:00
14 lines
517 B
Makefile
14 lines
517 B
Makefile
rootfs:
|
|
$(eval TMPDIR := $(shell mktemp -d))
|
|
pacstrap -C rootfs/etc/pacman.conf -c -d -G -M $(TMPDIR) $(shell cat packages)
|
|
cp -rvp --backup --suffix=.pacnew rootfs/* $(TMPDIR)/
|
|
arch-chroot $(TMPDIR) locale-gen
|
|
arch-chroot $(TMPDIR) pacman-key --init
|
|
arch-chroot $(TMPDIR) pacman-key --populate archlinux
|
|
tar --numeric-owner --xattrs --acls --exclude-from=exclude -C $(TMPDIR) -c . -Jvf archlinux.tar.xz
|
|
rm -rf $(TMPDIR)
|
|
|
|
docker-image: rootfs
|
|
docker build -t pierres/archlinux .
|
|
|
|
.PHONY: rootfs docker-image
|