forked from morion4000/webdollar-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (25 loc) · 792 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
30
31
32
33
34
35
36
37
FROM node:16-alpine
ENV NODE_VERSION 16.11.1
ENV NODE_TLS_REJECT_UNAUTHORIZED 0
RUN apk update && apk upgrade && apk add --no-cache \
git \
curl \
wget \
bash \
tar \
jq
WORKDIR /usr/local
ARG WEBDOLLAR=1
RUN git clone https://github.com/WebDollar/Node-WebDollar.git miner
# A backup location of the repo in case I need to test new code not in the project.
#RUN git clone https://github.com/bwvolleyball/Node-WebDollar.git miner
WORKDIR /usr/local/miner
ENV PYTHON /usr/bin/python2
RUN (printf "n" && cat) | bash install-miner.sh && npm install
RUN npm run build_terminal_menu && npm run build_terminal
ARG DEVELOPMENT=1
ENV SOLO_MINING=false
ADD master_mining_setup.sh .
ADD start_pool_mining.sh .
ADD start_mining.sh .
CMD [ "./master_mining_setup.sh" ]