2016-09-19 21:12:06 +02:00
|
|
|
FROM alpine:latest
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2016-05-16 01:51:05 +02:00
|
|
|
|
2016-05-17 18:34:06 +02:00
|
|
|
RUN apk add --no-cache \
|
2016-05-16 01:51:05 +02:00
|
|
|
ca-certificates \
|
2016-05-17 18:34:06 +02:00
|
|
|
curl \
|
|
|
|
openssl
|
2016-05-16 01:51:05 +02:00
|
|
|
|
2016-10-08 08:31:44 +02:00
|
|
|
ENV CPUMINER_VERSION v2.4.5
|
2016-05-17 18:34:06 +02:00
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
autoconf \
|
2016-05-16 01:51:05 +02:00
|
|
|
automake \
|
2016-05-17 18:34:06 +02:00
|
|
|
build-base \
|
|
|
|
curl-dev \
|
2016-05-16 01:51:05 +02:00
|
|
|
git \
|
2016-05-17 18:34:06 +02:00
|
|
|
openssl-dev \
|
2016-10-08 08:31:44 +02:00
|
|
|
&& git clone --branch "${CPUMINER_VERSION}" https://github.com/pooler/cpuminer.git /usr/src/cpuminer \
|
2016-05-16 01:51:05 +02:00
|
|
|
&& ( \
|
|
|
|
cd /usr/src/cpuminer \
|
|
|
|
&& ./autogen.sh \
|
|
|
|
&& ./configure CFLAGS="-O3" \
|
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
) \
|
|
|
|
&& rm -rf /usr/src/cpuminer \
|
2016-05-17 18:34:06 +02:00
|
|
|
&& apk del .build-deps
|
2016-05-16 01:51:05 +02:00
|
|
|
|
|
|
|
ENTRYPOINT [ "minerd" ]
|