forked from Bendr0id/xmrigCC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (20 loc) · 897 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
FROM ubuntu:latest
RUN apt-get update && \
apt-get install software-properties-common git build-essential libbz2-dev cmake libuv1-dev libssl-dev wget -y
RUN add-apt-repository ppa:jonathonf/gcc-7.1 && \
apt-get update && \
apt-get install gcc-7 g++-7 -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz \
&& tar xfz boost_1_66_0.tar.gz \
&& cd boost_1_66_0 \
&& ./bootstrap.sh --with-libraries=system \
&& ./b2 link=static runtime-link=static install \
&& cd .. && rm -rf boost_1_66_0 && rm boost_1_66_0.tar.gz && ldconfig
RUN git clone https://github.com/Bendr0id/xmrigCC.git && \
cd xmrigCC && \
cmake . -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 -DWITH_CC_SERVER=OFF -DWITH_HTTPD=OFF && \
make
COPY Dockerfile /Dockerfile
ENTRYPOINT ["/xmrigCC/xmrigDaemon"]