From a4ae9003bac1b13db562ae458fe262a5c6a24541 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Thu, 12 Dec 2013 17:48:23 -0800 Subject: [PATCH] Add dockerfile --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dc2101d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# +# Dockerfile for cpuminer +# usage: docker run creack/cpuminer --url xxxx --user xxxx --pass xxxx +# ex: docker run creack/cpuminer --url stratum+tcp://ltc.pool.com:80 --user creack.worker1 --pass abcdef +# +# + +FROM ubuntu:12.10 +MAINTAINER Guillaume J. Charmes + +RUN apt-get update -qq + +RUN apt-get install -qqy automake +RUN apt-get install -qqy libcurl4-openssl-dev +RUN apt-get install -qqy git +RUN apt-get install -qqy make + +RUN git clone https://github.com/pooler/cpuminer + +RUN cd cpuminer && ./autogen.sh +RUN cd cpuminer && ./configure CFLAGS="-O3" +RUN cd cpuminer && make + +WORKDIR /cpuminer +ENTRYPOINT ["./minerd"]