Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM base/archlinux:latest
MAINTAINER Tiago de Paula Peixoto <tiago@skewed.de>
RUN echo 'Server=https://archive.archlinux.org/repos/2017/11/23/$repo/os/$arch' > /etc/pacman.d/mirrorlist
#RUN pacman-key --refresh-keys
RUN pacman -Syu --noconfirm
RUN pacman -S binutils make gcc patch fakeroot --noconfirm --needed
RUN pacman -S expac yajl git --noconfirm --needed
RUN pacman -S sudo grep file --noconfirm --needed
RUN pacman -S sudo boost python3 python3-scipy python3-numpy \
cgal cairomm python-cairo sparsehash cairomm \
autoconf-archive pkg-config --noconfirm --needed
ENV MAKEPKG_USER=mkpkg \
MAKEPKG_GROUP=mkpkg \
MAKEPKG_ROOT=/tmp/build
RUN groupadd "${MAKEPKG_USER}" \
&& useradd -g "${MAKEPKG_GROUP}" "${MAKEPKG_USER}"
RUN mkdir -p ${MAKEPKG_ROOT}; chown mkpkg:mkpkg ${MAKEPKG_ROOT} \
&& cd /usr/lib/ && ln -s libmpfr.so.6.0.1 libmpfr.so.4
WORKDIR ${MAKEPKG_ROOT}
USER ${MAKEPKG_USER}
RUN curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=python-graph-tool
RUN makepkg PKGBUILD --install --needed CXXFLAGS="-mtune=generic -O3 -pipe -flto=4 -ffunction-sections -fdata-sections" LDFLAGS="-Wl,--gc-sections"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment