forked from tatowicz/docker-ethminer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (34 loc) · 985 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
33
34
35
36
37
38
39
40
41
FROM nvidia/cuda:8.0-devel-ubuntu16.04
MAINTAINER Anthony Tatowicz
WORKDIR /
RUN apt-get update \
&& apt-get -y install software-properties-common \
&& add-apt-repository -y ppa:ethereum/ethereum -y \
&& apt-get update \
&& apt-get install -y git \
cmake \
libcryptopp-dev \
libleveldb-dev \
libjsoncpp-dev \
libjsonrpccpp-dev \
libboost-all-dev \
libgmp-dev \
libreadline-dev \
libcurl4-gnutls-dev \
ocl-icd-libopencl1 \
opencl-headers \
mesa-common-dev \
libmicrohttpd-dev \
build-essential
RUN git clone https://github.com/Genoil/cpp-ethereum/ \
&& cd cpp-ethereum \
&& mkdir build \
&& cd build \
&& cmake -DBUNDLE=cudaminer .. \
&& make -j8
ENV GPU_FORCE_64BIT_PTR=0
ENV GPU_MAX_HEAP_SIZE=100
ENV GPU_USE_SYNC_OBJECTS=1
ENV GPU_MAX_ALLOC_PERCENT=100
ENV GPU_SINGLE_ALLOC_PERCENT=100
ENTRYPOINT ["/cpp-ethereum/build/ethminer/ethminer", "--farm-recheck", "200", "-U"]