2013-12-13 02:48:23 +01:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2015-09-19 16:08:31 +02:00
|
|
|
FROM ubuntu:14.04
|
|
|
|
MAINTAINER Guillaume J. Charmes <guillaume@charmes.net>
|
2013-12-13 02:48:23 +01:00
|
|
|
|
2015-09-19 16:08:31 +02:00
|
|
|
RUN apt-get update -qq && \
|
|
|
|
apt-get install -qqy automake libcurl4-openssl-dev git make
|
2013-12-13 02:48:23 +01:00
|
|
|
|
2015-09-19 16:08:31 +02:00
|
|
|
RUN git clone https://github.com/pooler/cpuminer
|
2013-12-13 02:48:23 +01:00
|
|
|
|
2015-09-19 16:08:31 +02:00
|
|
|
RUN cd cpuminer && \
|
|
|
|
./autogen.sh && \
|
|
|
|
./configure CFLAGS="-O3" && \
|
|
|
|
make
|
2013-12-13 02:48:23 +01:00
|
|
|
|
2015-09-19 16:08:31 +02:00
|
|
|
WORKDIR /cpuminer
|
|
|
|
ENTRYPOINT ["./minerd"]
|