2013-12-13 02:48:23 +01:00
|
|
|
#
|
|
|
|
# Dockerfile for cpuminer
|
2019-10-14 17:40:05 +02:00
|
|
|
# usage: docker run lbry/cpuminer --url xxxx --user xxxx --pass xxxx
|
|
|
|
# ex: docker run lbry/cpuminer --url stratum+tcp://lbc.pool.com:80 --user worker1 --pass abcdef
|
2013-12-13 02:48:23 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2019-10-14 17:40:05 +02:00
|
|
|
FROM ubuntu:18.04
|
2013-12-13 02:48:23 +01:00
|
|
|
|
2015-09-19 16:08:31 +02:00
|
|
|
RUN apt-get update -qq && \
|
2019-06-08 01:43:14 +02:00
|
|
|
apt-get install -qqy automake libcurl4-openssl-dev git make gcc
|
2013-12-13 02:48:23 +01:00
|
|
|
|
2019-10-14 17:40:05 +02:00
|
|
|
RUN git clone https://github.com/lbryio/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"]
|