-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
32 lines (25 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ARG LOLMINER_VERSION=1.52a
ARG CUDA_VERSION=11.7.1
ARG OS_VERSION=ubuntu22.04
ARG AMD_DRIVER=21.30
##########################################################
# amd
FROM compscidr/amdgpu:${OS_VERSION}-${AMD_DRIVER} as amd
#FROM compscidr/amdgpu:ubuntu_20.04_21.30 as amd
ARG LOLMINER_VERSION
RUN mkdir /lolminer && wget -O lolminer.tar.gz https://github.com/Lolliedieb/lolMiner-releases/releases/download/${LOLMINER_VERSION}/lolMiner_v${LOLMINER_VERSION}_Lin64.tar.gz \
&& tar xvf lolminer.tar.gz --strip-components 1 -C /lolminer
ENTRYPOINT ["/lolminer/lolMiner"]
##########################################################
# nvidia
# don't bump this because otherwise it breaks on ubuntu 20.04 due to differing cuda version
FROM nvidia/cuda:${CUDA_VERSION}-base-${OS_VERSION} as nvidia
ARG LOLMINER_VERSION
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl \
wget \
tar \
ca-certificates
RUN mkdir /lolminer && wget -O lolminer.tar.gz https://github.com/Lolliedieb/lolMiner-releases/releases/download/${LOLMINER_VERSION}/lolMiner_v${LOLMINER_VERSION}_Lin64.tar.gz \
&& tar xvf lolminer.tar.gz --strip-components 1 -C /lolminer
ENTRYPOINT ["/lolminer/lolMiner"]