Add dockerfile
This commit is contained in:
parent
04344f8af2
commit
a4ae9003ba
1 changed files with 25 additions and 0 deletions
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -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 <guillaume@charmes.net>
|
||||||
|
|
||||||
|
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"]
|
Loading…
Reference in a new issue