add cpuminer

Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle 2016-05-15 16:51:05 -07:00
parent cd0450c829
commit fbca1fb7de
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 34 additions and 1 deletions

33
cpuminer/Dockerfile Normal file
View File

@ -0,0 +1,33 @@
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" ]

View File

@ -22,7 +22,7 @@ RUN buildDeps=' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& git clone https://github.com/LastPass/lastpass-cli.git /usr/src/lastpass-cli \
&& git clone --depth 1 https://github.com/LastPass/lastpass-cli.git /usr/src/lastpass-cli \
&& cd /usr/src/lastpass-cli \
&& make \
&& make install \