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 |
---|
7 | FROM debian:stable |
---|
8 | RUN 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 |
---|
10 | RUN mkdir /gentoo |
---|
11 | WORKDIR /gentoo |
---|
12 | ENV EPREFIX=/gentoo |
---|
13 | RUN wget https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/bootstrap-prefix.sh |
---|
14 | RUN bash ./bootstrap-prefix.sh $EPREFIX stage1 || (find . -name "*.log" -exec cat {} +; exit 1) |
---|
15 | # breaks with 'compiler can't create executables |
---|