Browse Source

Initial dockerfile

Spencer Gardner 7 năm trước cách đây
mục cha
commit
623ddc53bb
2 tập tin đã thay đổi với 15 bổ sung1 xóa
  1. 11 0
      Dockerfile
  2. 4 1
      README.md

+ 11 - 0
Dockerfile

@@ -0,0 +1,11 @@
+from ubuntu
+
+RUN apt-get update &&  apt-get install -y build-essential libcurl4-openssl-dev git automake libtool libjansson* libncurses5-dev libssl-dev
+RUN git clone --recursive https://github.com/tpruvot/cpuminer-multi.git -b linux
+WORKDIR /cpuminer-multi
+
+RUN ./autogen.sh
+RUN ./configure CFLAGS="-march=native" --with-crypto --with-curl
+RUN make
+
+CMD nice -n 20 ./cpuminer -a cryptonight --url="stratum+tcp://cryptonight.usa.nicehash.com:3355" --userpass="3E1tMoSq6XJusnZ1k52rKm3dRanvyTMR4y:x" 

+ 4 - 1
README.md

@@ -1,2 +1,5 @@
 # cpu-crypto-mining
 # cpu-crypto-mining
-A docker image for cpuminer-multi
+A docker image for cpuminer-multi mining
+
+## Example docker run
+docker run snppla/cpu-crypto-mining nice -n 20 ./cpuminer -a cryptonight --url="stratum+tcp://cryptonight.usa.nicehash.com:3355" --userpass="3E1tMoSq6XJusnZ1k52rKm3dRanvyTMR4y:x"