22 lines
458 B
Docker
22 lines
458 B
Docker
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"]
|