mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
7eea00edf3
Signed-off-by: Michael Käufl <dockerfiles@c.michael-kaeufl.de>
29 lines
596 B
Docker
29 lines
596 B
Docker
FROM alpine:latest
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
RUN apk add --no-cache \
|
|
ca-certificates \
|
|
curl \
|
|
libressl
|
|
|
|
ENV CPUMINER_VERSION v2.4.5
|
|
RUN set -x \
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
autoconf \
|
|
automake \
|
|
build-base \
|
|
curl-dev \
|
|
git \
|
|
&& git clone --depth 1 --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" ]
|