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