FROM almalinux:9 as installer RUN dnf install \ --installroot /fakeroot \ --releasever 9 \ --setopt install_weak_deps=false \ --nodocs -y \ nodejs npm \ && dnf clean all --installroot /fakeroot FROM scratch COPY --from=installer /fakeroot / RUN npm install -g prettier \ && npm cache clean --force