-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
32 lines (25 loc) · 948 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# Dockerfile for cpuminer
#
# Usage:
# docker run cpuminer [parameters]
#
# Examples:
#
# 1. Direct connection to node using the getblocktemplate method
# docker run cpuminer --url http://a.paicoin.node:19566 --user user --pass password --coinbase-addr McvP9ELi7SN4rE2JU5X9E2h7txQyH7nUQd --algo paicoin
#
# 2. Connection to the mining pool via the Stratum protocol
# docker run cpuminer --url stratum+tcp://a.paicoin.mining.pool:3052 --user user --pass password --algo paicoin
#
FROM ubuntu:16.04
RUN apt-get update -qq && \
apt-get install -qqy automake libcurl4-openssl-dev git make gcc
RUN git clone https://github.com/projectpai/cpuminer.git
RUN cd cpuminer
#RUN git checkout feature/sha3
RUN ./autogen.sh && \
./configure CFLAGS="-O3" && \
make
WORKDIR /cpuminer
ENTRYPOINT ["./minerd"]