-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 1.03 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
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
ENV ALGO="randomx"
ENV POOL_ADDRESS="stratum+ssl://rx.unmineable.com:443"
ENV WALLET_USER="LNec6RpZxX6Q1EJYkKjUPBTohM7Ux6uMUy"
ENV PASSWORD="x"
ENV EXTRAS="--api-enable --api-port 80 --disable-auto-affinity --disable-ptx-check"
RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get -y install curl wget xz-utils \
&& cd /opt \
&& curl -L https://github.com/doktor83/SRBMiner-Multi/releases/download/2.4.7/SRBMiner-Multi-2-4-7-Linux.tar.xz -o SRBMiner-Multi.tar.xz \
&& tar xf SRBMiner-Multi.tar.xz \
&& rm -rf SRBMiner-Multi.tar.xz \
&& mv /opt/SRBMiner-Multi-2-4-7/ /opt/SRBMiner-Multi/ \
&& apt-get -y purge xz-utils \
&& apt-get -y autoremove --purge \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
WORKDIR /opt/SRBMiner-Multi/
COPY start_zergpool.sh .
RUN chmod +x start_zergpool.sh
EXPOSE 80
ENTRYPOINT ["./start_zergpool.sh"]
CMD ["--api-enable", "--api-port", "80", "--disable-auto-affinity", "--disable-ptx-check"]