-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
29 lines (23 loc) · 979 Bytes
/
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
FROM debian:stable-slim
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-gpu"
RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get -y install curl wget \
&& cd /opt \
&& curl -L https://github.com/doktor83/SRBMiner-Multi/releases/download/2.5.3/SRBMiner-Multi-2-5-3-Linux.tar.gz -o SRBMiner-Multi.tar.gz \
&& tar xf SRBMiner-Multi.tar.gz \
&& rm -rf SRBMiner-Multi.tar.gz \
&& mv /opt/SRBMiner-Multi-2-5-3/ /opt/SRBMiner-Multi/ \
&& 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-gpu"]