aboutsummaryrefslogtreecommitdiff
path: root/ci/docker/gentoo/paludis-gentoo/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'ci/docker/gentoo/paludis-gentoo/Dockerfile')
-rw-r--r--ci/docker/gentoo/paludis-gentoo/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/ci/docker/gentoo/paludis-gentoo/Dockerfile b/ci/docker/gentoo/paludis-gentoo/Dockerfile
new file mode 100644
index 0000000..fa08311
--- /dev/null
+++ b/ci/docker/gentoo/paludis-gentoo/Dockerfile
@@ -0,0 +1,18 @@
+FROM gentoo/portage:latest as portage
+FROM gentoo/stage3-amd64:latest
+
+# copy the entire portage volume in
+COPY --from=portage /usr/portage /usr/portage
+
+COPY ./config/package.use /etc/portage/
+COPY ./config/package.mask /etc/portage/
+COPY ./config/package.accept_keywords /etc/portage/
+COPY ./config/sets/paludis-deps /etc/portage/sets/
+
+RUN emerge --update --newuse --deep -v @world \
+ && emerge --update --newuse --deep -v @paludis-deps \
+ && rm -rf /usr/portage/*
+
+# Unprivileged user
+RUN useradd -M builder
+USER builder