Fixing docker buiild
This commit is contained in:
parent
495efb8373
commit
275bf3e5cf
1 changed files with 9 additions and 1 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,12 +1,20 @@
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install software-properties-common git build-essential cmake libuv1-dev libssl-dev libboost-system-dev -y
|
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 && \
|
RUN add-apt-repository ppa:jonathonf/gcc-7.1 && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install gcc-7 g++-7 -y
|
apt-get install gcc-7 g++-7 -y
|
||||||
|
|
||||||
|
RUN wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz \
|
||||||
|
&& tar xfz oost_1_66_0.tar.gz \
|
||||||
|
&& rm boost_1_66_0.tar.gz \
|
||||||
|
&& cd oost_1_66_0 \
|
||||||
|
&& ./bootstrap.sh \
|
||||||
|
&& ./b2 --with-libraries=system -j 4 link=shared runtime-link=shared install \
|
||||||
|
&& cd .. && rm -rf boost_1_66_0 && ldconfig
|
||||||
|
|
||||||
RUN git clone https://github.com/Bendr0id/xmrigCC.git && \
|
RUN git clone https://github.com/Bendr0id/xmrigCC.git && \
|
||||||
cd xmrigCC && \
|
cd xmrigCC && \
|
||||||
cmake . -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 -DWITH_CC_SERVER=OFF -DWITH_HTTPD=OFF && \
|
cmake . -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 -DWITH_CC_SERVER=OFF -DWITH_HTTPD=OFF && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue