Convert into docker image
This commit is contained in:
parent
2c1bb13be8
commit
5c437ead89
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -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"]
|
||||
10
entrypoint.sh
Normal file
10
entrypoint.sh
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user