Ticket #29105: Dockerfile_gentoo-20.06-gcc9-py37

File Dockerfile_gentoo-20.06-gcc9-py37, 2.0 KB (added by gh-sheerluck, 18 months ago)
Line 
1FROM gentoo/portage:20200601 as portage
2FROM gentoo/stage3-amd64:20200601
3# copy the entire portage volume in
4COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
5
6ENV LANG=C.UTF-8
7RUN    echo 'PYTHON_TARGETS="python3_7"' >> /etc/portage/make.conf \
8    && echo 'PYTHON_SINGLE_TARGET="python3_7"' >> /etc/portage/make.conf \
9    && echo 'FEATURES="-ipc-sandbox -mount-sandbox -network-sandbox -pid-sandbox"' >> /etc/portage/make.conf \
10    && echo 'USE="${USE} -introspection"' >> /etc/portage/make.conf \
11    && emerge app-portage/layman \
12    && layman -Lk \
13    && yes | layman -a sage-on-gentoo \
14    && mkdir /etc/portage/package.{accept_keywords,unmask} \
15    && mkdir /etc/portage/profile \
16    && ln -s /var/lib/layman/sage-on-gentoo/package.unmask/sage /etc/portage/package.unmask/sage \
17    && ln -s /var/lib/layman/sage-on-gentoo/package.keywords/sage /etc/portage/package.accept_keywords/sage \
18    && ln -s /var/lib/layman/sage-on-gentoo/package.use/sage /etc/portage/package.use/sage \
19    && ln -s /var/lib/layman/sage-on-gentoo/package.use/99sage-bin-doc /etc/portage/package.use/99sage-bin-doc \
20    && echo 'media-gfx/tachyon-0.99_beta6-r2' >> /etc/portage/profile/package.provided \
21    && echo 'media-libs/harfbuzz icu' >> /etc/portage/package.use/zzz \
22    && echo 'dev-python/pandas ~amd64' >> /etc/portage/package.accept_keywords/zzz \
23    && emerge -o sage  # Only merge the dependencies, not the sage.
24
25# additional steps that were discovered after `tox -e docker-gentoo-standard`
26RUN    echo 'sci-libs/openblas ~amd64' >> /etc/portage/package.accept_keywords/zzz \
27    && emerge -C sage net-misc/openssh dev-lang/python:2.7 \
28    && rm /etc/portage/profile/package.provided \
29    && echo 'sci-libs/m4ri png' >> /etc/portage/package.use/zzz \
30    && echo 'media-gfx/tachyon -png -opengl' >> /etc/portage/package.use/zzz
31
32
33WORKDIR /
34CMD ["/bin/bash"]
35
36# docker build -t fbissey/sage-on-gentoo-stage4:20.6 -t fbissey/sage-on-gentoo-stage4:latest -f Dockerfile_gentoo-20.06-gcc9-py37 .