forked from liangyongxiang/gentoo-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (43 loc) · 3.47 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM gentoo/portage:latest as portage
FROM gentoo/stage3 as production
COPY --from=portage /var/db/repos/gentoo/ /var/db/repos/gentoo
COPY gentoo.conf /etc/portage/repos.conf/
WORKDIR /
ENV PATH="/root/.local/bin:${PATH}"
RUN set -eux; \
\
eselect news read --quiet new >/dev/null 2&>1; \
echo 'FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox"' >> /etc/portage/make.conf; \
echo 'PYTHON_TARGETS="python3_12 python3_11"' >> /etc/portage/make.conf; \
emerge --info; \
emerge --verbose --quiet --jobs $(nproc) --autounmask y --autounmask-continue y \
app-eselect/eselect-repository \
app-portage/eix \
app-portage/flaggie \
app-portage/genlop \
app-portage/gentoolkit \
app-portage/iwdevtools \
app-portage/mgorny-dev-scripts \
app-portage/portage-utils \
app-misc/jq \
app-misc/neofetch \
dev-python/pip \
dev-util/pkgdev \
dev-util/pkgcheck \
dev-vcs/git; \
\
rm --recursive /var/db/repos/gentoo; \
emerge --sync gentoo; \
emerge --info; \
\
eix-update; \
pkgcheck cache --update --repo gentoo; \
\
eselect repository enable gentoo-zh; \
emerge --sync gentoo-zh; \
emerge --verbose --quiet --jobs $(nproc) --autounmask y --autounmask-continue y \
dev-python/nvchecker; \
eselect repository remove -f gentoo-zh; \
\
nvchecker --version
CMD ["/bin/bash"]