mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
f493548750
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
29 lines
539 B
Docker
29 lines
539 B
Docker
FROM alpine
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
RUN apk add --no-cache \
|
|
ca-certificates \
|
|
curl \
|
|
openssl
|
|
|
|
RUN set -x \
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
autoconf \
|
|
automake \
|
|
build-base \
|
|
curl-dev \
|
|
git \
|
|
openssl-dev \
|
|
&& 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 \
|
|
&& apk del .build-deps
|
|
|
|
ENTRYPOINT [ "minerd" ]
|