2016-09-19 21:12:06 +02:00
|
|
|
FROM alpine:latest
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL 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 \
|
2017-01-11 01:21:30 +01:00
|
|
|
libressl
|
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-12-28 02:04:58 +01:00
|
|
|
&& git clone --depth 1 --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" ]
|