-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathContainerfile.m4
More file actions
16 lines (16 loc) · 928 Bytes
/
Containerfile.m4
File metadata and controls
16 lines (16 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get -y install build-essential curl file flex bison libz-dev perl
COPY TARFILE /tmp
RUN tar -xf /tmp/TARFILE -C /tmp
RUN mkdir -p -m 0755 /tmp/PKGNAME/DEBIAN
COPY control postinst postrm /tmp/PKGNAME/DEBIAN
RUN cd /tmp/BASENAME && ./contrib/download_prerequisites --no-isl
RUN mkdir -p /tmp/BASENAME/objdir
RUN cd /tmp/BASENAME/objdir && ../configure --prefix=/opt/gcc-latest --enable-languages=c,c++ --enable-libstdcxx-debug --disable-libstdcxx-pch --disable-bootstrap --disable-multilib --disable-libvtv --disable-libssp --disable-libffi --with-system-zlib --without-isl --enable-multiarch --with-bugurl=https://gcc.gnu.org/bugzilla
RUN make -C /tmp/BASENAME/objdir -j NPROCS
RUN make -C /tmp/BASENAME/objdir install DESTDIR=/tmp/PKGNAME
RUN cd /tmp && dpkg-deb --build PKGNAME
RUN apt-get -y install /tmp/PKGNAME.deb
RUN apt-get -y remove gcc-latest
RUN test ! -d /opt/gcc-latest