mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-17 05:41:41 +02:00
27 lines
848 B
Docker
27 lines
848 B
Docker
# Latest version of ubuntu
|
|
FROM nvidia/cuda:9.0-base
|
|
|
|
# Default git repository
|
|
ENV GIT_REPOSITORY https://github.com/fireice-uk/xmr-stak.git
|
|
ENV XMRSTAK_CMAKE_FLAGS -DXMR-STAK_COMPILE=generic -DCUDA_ENABLE=ON -DOpenCL_ENABLE=OFF
|
|
|
|
# Innstall packages
|
|
RUN apt-get update \
|
|
&& set -x \
|
|
&& apt-get install -qq --no-install-recommends -y ca-certificates cmake cuda-core-9-0 git cuda-cudart-dev-9-0 libhwloc-dev libmicrohttpd-dev libssl-dev \
|
|
&& git clone $GIT_REPOSITORY \
|
|
&& cd /xmr-stak \
|
|
&& cmake ${XMRSTAK_CMAKE_FLAGS} . \
|
|
&& make \
|
|
&& cd - \
|
|
&& mv /xmr-stak/bin/* /usr/local/bin/ \
|
|
&& rm -rf /xmr-stak \
|
|
&& apt-get purge -y -qq cmake cuda-core-9-0 git cuda-cudart-dev-9-0 libhwloc-dev libmicrohttpd-dev libssl-dev \
|
|
&& apt-get clean -qq
|
|
|
|
VOLUME /mnt
|
|
|
|
WORKDIR /mnt
|
|
|
|
ENTRYPOINT ["/usr/local/bin/xmr-stak"]
|