Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 12 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
#
# 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
#
# Official Dockerfile for a5a-cpuminer
# usage: docker run androidcoin-project/a5a-cpuminer --url stratum+tcp://SERVER:PORT --user WALLET --pass X
#

FROM ubuntu:12.10
MAINTAINER Guillaume J. Charmes <guillaume@charmes.net>
FROM ubuntu:17.10

RUN apt-get update -qq && apt-get upgrade -y

RUN apt-get update -qq
RUN apt-get install -qqy autotools-dev autotools-dev \
automake git build-essential libgmp3-dev \
libcurl4-openssl-dev libboost-all-dev

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/androidcoin-project/a5a-cpuminer.git

RUN git clone https://github.com/pooler/cpuminer
WORKDIR /a5a-cpuminer

RUN cd cpuminer && ./autogen.sh
RUN cd cpuminer && ./configure CFLAGS="-O3"
RUN cd cpuminer && make
RUN ./autogen.sh && ./configure CFLAGS="-O3" CXXFLAGS="-O3" && make

WORKDIR /cpuminer
ENTRYPOINT ["./m-minerd"]
ENTRYPOINT ["/a5a-cpuminer/minerd"]