FROM  git.hydrar.de/navos/navos:latest AS builder

COPY ./pacman.conf /pacman.conf
RUN pacman -Syu navinstall

RUN navinstall create-tar --dir /os

FROM scratch
COPY --from=builder /os/* /