Ticket #28905: Dockerfile-sage_gentoo

File Dockerfile-sage_gentoo, 660 bytes (added by mkoeppe, 19 months ago)
Line 
1# -*- Dockerfile -*-
2# sage on gentoo prefix
3## Bootstrapping from alpine fails b/c wget is nonstandard
4## FROM alpine:latest
5## RUN apk add --no-cache bash gcc make
6## Bootstrapping from ubuntu
7FROM debian:stable
8RUN apt-get update && apt-get -y install --no-install-recommends gcc make wget ca-certificates
9# From https://wiki.gentoo.org/wiki/Project:Prefix/Bootstrap
10RUN mkdir /gentoo
11WORKDIR /gentoo
12ENV EPREFIX=/gentoo
13RUN wget https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/bootstrap-prefix.sh
14RUN bash ./bootstrap-prefix.sh $EPREFIX stage1 || (find . -name "*.log" -exec cat {} +; exit 1)
15# breaks with 'compiler can't create executables