Created
August 1, 2020 18:47
-
-
Save mharsch/5f9d142b22af7b77a4b262cbc18f3152 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nvidia/cuda:9.2-base-ubuntu18.04 | |
| LABEL description="ethminer container for hosts running the NVIDIA driver" | |
| ENV API_PORT=3333 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| ocl-icd-opencl-dev \ | |
| clinfo \ | |
| curl \ | |
| # point at lib mapped in by container runtime | |
| && mkdir -p /etc/OpenCL/vendors \ | |
| && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd \ | |
| && curl -fsSL \ | |
| https://github.com/ethereum-mining/ethminer/releases/download/v0.18.0/ethminer-0.18.0-cuda-9-linux-x86_64.tar.gz \ | |
| -o ethminer.tar.gz \ | |
| && mkdir -p /ethminer \ | |
| && tar xvfz ethminer.tar.gz -C /ethminer \ | |
| && rm -rf ethminer.tar \ | |
| && apt-get purge --autoremove -y curl \ | |
| && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* | |
| EXPOSE $API_PORT | |
| CMD /ethminer/bin/ethminer -U -P $POOL_ADDRESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment