dockerfiles/cpuminer/Dockerfile
Jess Frazelle 78ecf697cf
latest versions
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-10-07 23:31:44 -07:00

30 lines
593 B
Docker

FROM alpine:latest
MAINTAINER Jessie Frazelle <jess@linux.com>
RUN apk add --no-cache \
ca-certificates \
curl \
openssl
ENV CPUMINER_VERSION v2.4.5
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
autoconf \
automake \
build-base \
curl-dev \
git \
openssl-dev \
&& git clone --branch "${CPUMINER_VERSION}" 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 \
&& apk del .build-deps
ENTRYPOINT [ "minerd" ]