mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2025-08-06 14:17:18 +02:00
Merge branch 'github/fork/TheLinuxNinja/dockerfile-typo' into 'no-root-build'
a handful of fixes and improvements found while testing this branch See merge request archlinux/archlinux-docker!16
This commit is contained in:
commit
005e032e98
@ -8,9 +8,8 @@ RUN sh -c 'ls usr/lib/sysusers.d/*.conf | /usr/share/libalpm/scripts/systemd-hoo
|
||||
# update /etc/os-release
|
||||
RUN ln -s /usr/lib/os-release /etc/os-release
|
||||
|
||||
# initialize the archilnux keyring, but discard any private key that may be shipped.
|
||||
RUN pacman-key --init && pacman-key --populate archlinux
|
||||
RUN rm -rf etc/pacman.d/gnupg/{openpgp-revocs.d/,private-keys-v1.d/,pugring.gpg~,gnupg.S.}*
|
||||
# initialize the archlinux keyring, but discard any private key that may be shipped.
|
||||
RUN pacman-key --init && pacman-key --populate archlinux && rm -rf etc/pacman.d/gnupg/{openpgp-revocs.d/,private-keys-v1.d/,pubring.gpg~,gnupg.S.}*
|
||||
|
||||
ENV LANG=en_US.UTF-8
|
||||
CMD ["/usr/bin/bash"]
|
||||
|
6
Makefile
6
Makefile
@ -4,9 +4,11 @@ DOCKER_IMAGE:=base
|
||||
BUILDDIR=build
|
||||
PWD=$(shell pwd)
|
||||
|
||||
XZ_THREADS ?= 0
|
||||
|
||||
hooks:
|
||||
mkdir -p alpm-hooks/usr/share/libalpm/hooks
|
||||
find /usr/share/libalpm/hooks -exec ln -s /dev/null $(PWD)/alpm-hooks{} \;
|
||||
find /usr/share/libalpm/hooks -exec ln -sf /dev/null $(PWD)/alpm-hooks{} \;
|
||||
|
||||
rootfs: hooks
|
||||
mkdir -vp $(BUILDDIR)/var/lib/pacman/
|
||||
@ -30,7 +32,7 @@ rootfs: hooks
|
||||
archlinux.tar: rootfs
|
||||
|
||||
compress-rootfs: archlinux.tar
|
||||
xz -f archlinux.tar
|
||||
xz -9 -T"$(XZ_THREADS)" -f archlinux.tar
|
||||
|
||||
docker-image: compress-rootfs
|
||||
docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE) .
|
||||
|
Loading…
Reference in New Issue
Block a user