From fbca1fb7de32c4453a8656f337f9c8f3576e4784 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sun, 15 May 2016 16:51:05 -0700 Subject: [PATCH] add cpuminer Signed-off-by: Jess Frazelle --- cpuminer/Dockerfile | 33 +++++++++++++++++++++++++++++++++ lpass/Dockerfile | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 cpuminer/Dockerfile diff --git a/cpuminer/Dockerfile b/cpuminer/Dockerfile new file mode 100644 index 0000000..316f284 --- /dev/null +++ b/cpuminer/Dockerfile @@ -0,0 +1,33 @@ +FROM debian:sid +MAINTAINER Jessica Frazelle + +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" ] diff --git a/lpass/Dockerfile b/lpass/Dockerfile index d1a5dd8..7d30811 100644 --- a/lpass/Dockerfile +++ b/lpass/Dockerfile @@ -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 \