FROM registry.hub.docker.com/gentoo/portage:latest AS build
FROM registry.hub.docker.com/gentoo/stage3:systemd AS base
COPY --from=build /var/db/repos/gentoo /var/db/repos/gentoo
docker build . -t gentoo-distrobox
distrobox create --image localhost/gentoo-distrobox:latest -n gbox -H ~/home-gbox Based on: https://github.com/ardasevinc/distrobox/blob/main/docs/distrobox_gentoo.md