Explorar o código

Initial dockerfile

Spencer Gardner %!s(int64=7) %!d(string=hai) anos
pai
achega
623ddc53bb
Modificáronse 2 ficheiros con 15 adicións e 1 borrados
  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
-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"