2016-09-19 21:12:06 +02:00
|
|
|
FROM alpine:latest
|
2016-05-16 01:51:05 +02:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
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-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-05-16 01:51:05 +02:00
|
|
|
&& git clone --depth 1 https://github.com/pooler/cpuminer.git /usr/src/cpuminer \
|
|
|
|
&& ( \
|
|
|
|
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" ]
|