2016-08-27 21:06:23 +02:00
|
|
|
FROM alpine:3.4
|
2016-06-25 14:22:20 +02:00
|
|
|
|
2016-09-16 17:08:06 +02:00
|
|
|
ARG BUILD_CORES
|
2016-06-25 14:45:52 +02:00
|
|
|
|
2016-09-16 17:08:06 +02:00
|
|
|
ENV UID=991 GID=991
|
|
|
|
|
2017-01-16 22:13:29 +01:00
|
|
|
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.5/community" >> /etc/apk/repositories \
|
2016-09-16 17:08:06 +02:00
|
|
|
&& NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
|
|
|
&& BUILD_DEPS=" \
|
2016-06-25 14:22:20 +02:00
|
|
|
build-base \
|
|
|
|
git \
|
|
|
|
m4 \
|
|
|
|
automake \
|
|
|
|
autoconf \
|
|
|
|
libtool \
|
|
|
|
curl-dev \
|
|
|
|
libnotify-dev" \
|
|
|
|
&& apk -U add \
|
|
|
|
${BUILD_DEPS} \
|
2016-09-16 17:08:06 +02:00
|
|
|
su-exec \
|
|
|
|
tini@community \
|
2016-06-25 14:22:20 +02:00
|
|
|
libnotify \
|
|
|
|
libstdc++ \
|
|
|
|
curl \
|
|
|
|
&& cd /tmp \
|
2016-06-30 13:15:04 +02:00
|
|
|
&& git clone https://github.com/BOINC/boinc.git --depth=1 \
|
2016-06-25 14:22:20 +02:00
|
|
|
&& cd boinc \
|
|
|
|
&& ./_autosetup \
|
|
|
|
&& ./configure --disable-server --enable-client CXXFLAGS="-O3 " \
|
2016-09-16 17:08:06 +02:00
|
|
|
&& make -j ${NB_CORES} \
|
2016-06-25 14:22:20 +02:00
|
|
|
&& make install \
|
|
|
|
&& apk del ${BUILD_DEPS} \
|
|
|
|
&& rm -rf /var/cache/apk/* /tmp/*
|
|
|
|
|
2016-09-16 17:08:06 +02:00
|
|
|
COPY run.sh /usr/local/bin/run.sh
|
|
|
|
|
|
|
|
RUN chmod +x /usr/local/bin/run.sh
|
|
|
|
|
|
|
|
VOLUME /boinc
|
|
|
|
|
2017-01-19 02:31:59 +01:00
|
|
|
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>"
|
|
|
|
|
2016-09-17 13:11:42 +02:00
|
|
|
ENTRYPOINT ["run.sh"]
|