-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
30 lines (22 loc) · 818 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
FROM ubuntu:16.04
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y linuxbrew-wrapper clang wget software-properties-common cmake libtool autoconf psmisc opencl-headers ocl-icd-libopencl1 pciutils
RUN curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get install -y nodejs
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
RUN git clone https://github.com/WebDollar/Node-WebDollar.git
RUN cp -R Node-WebDollar/* .
RUN npm install
RUN git clone https://github.com/WebDollar/argon2
WORKDIR /usr/src/app/argon2
RUN autoreconf -i
RUN bash configure
RUN cmake -DCMAKE_BUILD_TYPE=Release .
RUN make
WORKDIR /usr/src/app
RUN cp -a argon2/* dist_bundle/CPU/
ADD start_pool_mining.sh .
ADD start_mining.sh .
CMD [ "sh", "start_mining.sh" ]