mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
add cpuminer
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
parent
cd0450c829
commit
fbca1fb7de
33
cpuminer/Dockerfile
Normal file
33
cpuminer/Dockerfile
Normal 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" ]
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue
Block a user