Created
September 14, 2018 13:40
-
-
Save Alexhha/896e312b8999406e3f32b63bb2be2b47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM base/archlinux:latest | |
MAINTAINER Tiago de Paula Peixoto <[email protected]> | |
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