420c4ac982
Before modification the total memory footprint was around 3GB and this has now been reduced by ~50%
22 lines
669 B
Docker
22 lines
669 B
Docker
#
|
|
# 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:14.04
|
|
MAINTAINER Guillaume J. Charmes <guillaume@charmes.net>
|
|
|
|
RUN apt-get update -qq && \
|
|
apt-get install -qqy automake libcurl4-openssl-dev git make
|
|
|
|
RUN git clone https://github.com/pooler/cpuminer
|
|
|
|
RUN cd cpuminer && \
|
|
./autogen.sh && \
|
|
./configure CFLAGS="-O3" && \
|
|
make
|
|
|
|
WORKDIR /cpuminer
|
|
ENTRYPOINT ["./minerd"]
|