dockerfiles/cpuminer/Dockerfile
Jess Frazelle fbca1fb7de
add cpuminer
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
2016-05-15 16:51:11 -07:00

34 lines
736 B
Docker

FROM debian:sid
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \
ca-certificates \
libcurl3 \
openssl \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN buildDeps=' \
automake \
gcc \
git \
libcurl3-openssl-dev \
libssl-dev \
make \
' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
ENTRYPOINT [ "minerd" ]