Mining software...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
880 B

  1. # Latest version of ubuntu
  2. FROM nvidia/cuda:9.0-base
  3. # Default git repository
  4. ENV GIT_REPOSITORY https://github.com/fireice-uk/xmr-stak.git
  5. ENV XMRSTAK_CMAKE_FLAGS -DXMR-STAK_COMPILE=generic -DCUDA_ENABLE=ON -DOpenCL_ENABLE=OFF
  6. # Innstall packages
  7. RUN apt-get update \
  8. && set -x \
  9. && apt-get install -qq --no-install-recommends -y build-essential ca-certificates cmake cuda-core-9-0 git cuda-cudart-dev-9-0 libhwloc-dev libmicrohttpd-dev libssl-dev \
  10. && git clone $GIT_REPOSITORY \
  11. && cd /xmr-stak \
  12. && cmake ${XMRSTAK_CMAKE_FLAGS} . \
  13. && make \
  14. && cd - \
  15. && mv /xmr-stak/bin/* /usr/local/bin/ \
  16. && rm -rf /xmr-stak \
  17. && apt-get purge -y -qq build-essential cmake cuda-core-9-0 git cuda-cudart-dev-9-0 libhwloc-dev libmicrohttpd-dev libssl-dev \
  18. && apt-get clean -qq
  19. VOLUME /mnt
  20. WORKDIR /mnt
  21. ENTRYPOINT ["/usr/local/bin/xmr-stak"]