Skip to content

Instantly share code, notes, and snippets.

@andrewpsp
Created February 10, 2018 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewpsp/228f553965a66612406952c1c253b32f to your computer and use it in GitHub Desktop.
Save andrewpsp/228f553965a66612406952c1c253b32f to your computer and use it in GitHub Desktop.
Boost Dockerfile Snip
# 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