container/Dockerfile
JMARyA edb19e2582
Some checks failed
ci/woodpecker/push/build Pipeline failed
ldconfig
2025-04-24 15:29:36 +02:00

15 lines
No EOL
445 B
Docker

FROM ubuntu as builder
ARG TARGETARCH
# Download rootfs
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y wget xz-utils
RUN mkdir /os && wget -O - "https://navos.hydrar.de/rootfs/${TARGETARCH}/rootfs.tar.xz" | tar --numeric-owner --xattrs --acls -xvJf - -C /os
# Copy
FROM scratch
COPY --from=builder /os/ /
# Update & remove local keyring
RUN ldconfig
RUN pacman -Syu --noconfirm && rm -r /etc/pacman.d/gnupg/
CMD ["/bin/sh"]