diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5260104 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM nvidia/cuda:12.0.1-devel-ubuntu20.04 + +WORKDIR /app + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update && apt-get install -y ocl-icd-opencl-dev nano cmake python3-pip git + +RUN git clone https://github.com/shanhaicoder/XENGPUMiner.git + +WORKDIR /app/XENGPUMiner + +RUN chmod +x build.sh && ./build.sh + +RUN pip install -U -r requirements.txt + +COPY entrypoint.sh /app/XENGPUMiner + +RUN chmod +x entrypoint.sh + +ENTRYPOINT ["/app/XENGPUMiner/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..3e7a521 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +sed -i 's/account = 0x24691e54afafe2416a8252097c9ca67557271475/account = 0x1B9786D1B9e1e347Cf791b3aFf8518A837E8715f/g' config.conf +echo "STEP 8 of 10: Replaced ETH address" + +echo "STEP 10 of 10: Starting Miner & GPU" +cat config.conf +pwd +ls +./miner.sh -g 1 -c 1 \ No newline at end of file