Skip to content

Instantly share code, notes, and snippets.

@mharsch
Created August 1, 2020 18:47
Show Gist options
  • Select an option

  • Save mharsch/5f9d142b22af7b77a4b262cbc18f3152 to your computer and use it in GitHub Desktop.

Select an option

Save mharsch/5f9d142b22af7b77a4b262cbc18f3152 to your computer and use it in GitHub Desktop.
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