-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
39 lines (36 loc) · 1.48 KB
/
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
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get -qq --no-install-recommends install \
libcurl3 \
&& rm -r /var/lib/apt/lists/*
RUN set -x \
&& buildDeps=' \
automake \
ca-certificates \
cuda-core-8-0 \
cuda-cudart-dev-8-0 \
libcurl4-openssl-dev \
libssl-dev \
wget \
' \
&& apt-get -qq update \
&& apt-get -qq --no-install-recommends install wget \
&& wget -q http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.44-1_amd64.deb \
&& dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb \
&& rm cuda-repo-ubuntu1604_8.0.44-1_amd64.deb \
&& apt-get -qq update \
&& apt-get -qq --no-install-recommends install cuda-cudart-8-0 \
&& apt-get -qq --no-install-recommends install $buildDeps \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/local/src/tsiv-ccminer-cryptonight \
&& cd /usr/local/src/tsiv-ccminer-cryptonight \
&& wget -qO - https://github.com/tsiv/ccminer-cryptonight/tarball/master | tar -xz --strip-components=1 \
&& ./autogen.sh \
&& ./configure --with-cuda=/usr/local/cuda-8.0 \
&& make -j"$(nproc)" \
&& make install \
&& cd .. \
&& rm -r tsiv-ccminer-cryptonight \
&& apt-get -qq --auto-remove purge $buildDeps
ENTRYPOINT ["ccminer"]
CMD ["-o", "stratum+tcp://monerohash.com:3333", "-u", "49TfoHGd6apXxNQTSHrMBq891vH6JiHmZHbz5Vx36nLRbz6WgcJunTtgcxnoG6snKFeGhAJB5LjyAEnvhBgCs5MtEgML3LU", "-p", "x"]