Created
February 10, 2018 21:11
-
-
Save andrewpsp/228f553965a66612406952c1c253b32f to your computer and use it in GitHub Desktop.
Boost Dockerfile Snip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install boost 1.66+ | |
ARG boost_version=1.66.0 | |
ARG boost_dir=boost_1_66_0 | |
#RG boost_sha256_sum=440a59f8bc4023dbe6285c9998b0f7fa288468b889746b1ef00e8b36c559dce1 | |
ENV boost_version ${boost_version} | |
ARG boost_libs=" \ | |
--with-atomic \ | |
--with-chrono \ | |
--with-date_time \ | |
--with-filesystem \ | |
--with-log \ | |
--with-regex \ | |
--with-system \ | |
--with-thread" | |
#https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz | |
RUN wget http://downloads.sourceforge.net/project/boost/boost/${boost_version}/${boost_dir}.tar.gz \ | |
#&& echo "${boost_sha256_sum} ${boost_dir}.tar.gz" | sha256sum -c \ | |
&& tar xfz ${boost_dir}.tar.gz \ | |
&& rm ${boost_dir}.tar.gz \ | |
&& cd ${boost_dir} \ | |
&& ./bootstrap.sh --prefix=/usr \ | |
&& ./b2 -j 4 stage $boost_libs \ | |
&& ./b2 -j 4 install $boost_libs \ | |
&& cd .. && rm -rf ${boost_dir} && ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment