aboutsummaryrefslogtreecommitdiff
path: root/ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile
blob: 8a53305c7f3abfc4bcc4f24e53816164441ff9b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM gentoo/portage:latest as portage
FROM gentoo/stage3-amd64:latest

# copy the entire portage volume in
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo

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 sed -e '/--no-cmake-config/d' \
        -i /var/db/repos/gentoo/dev-libs/boost/boost-1.72.0-r2.ebuild \
    && cd /var/db/repos/gentoo/dev-libs/boost \
    && ebuild --force boost-1.72.0-r2.ebuild manifest \
    && emerge --update --newuse --deep -v @world \
    && emerge --update --newuse --deep -v @paludis-deps \
    && rm -rf /var/db/repos/*

# Unprivileged user
RUN useradd -M builder
USER builder