forked from tatowicz/docker-ethminer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (34 loc) · 877 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:11.0.3-devel-ubuntu20.04
MAINTAINER Thipok Cholsaipant
WORKDIR /
ENV TZ="America/New_York"
# Package and dependency setup
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime \
&& apt update \
&& apt install -y git \
cmake \
mesa-common-dev \
libdbus-1-dev
# Git repo set up
RUN git clone https://github.com/no-fee-ethereum-mining/nsfminer.git; \
cd nsfminer; \
ls; \
git checkout tags/v1.3.2 -b ; \
git submodule update --init --recursive
# Build
RUN pwd; \
cd nsfminer; \
pwd; \
ls; \
mkdir build; \
cd build; \
pwd; \
cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF -DETHSTRATUM=ON; \
cmake --build .; \
make install;
# Env setup
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