diff --git a/povray_wasm/Dockerfile b/povray_wasm/Dockerfile index cfd2e03..199a6cc 100644 --- a/povray_wasm/Dockerfile +++ b/povray_wasm/Dockerfile @@ -12,14 +12,22 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y bash \ automake \ make -RUN cd /opt && wget https://github.com/boostorg/boost/archive/refs/tags/boost-1.37.0.tar.gz -RUN cd /opt && tar -xf boost-1.37.0.tar.gz +RUN cd /opt && git clone https://github.com/boostorg/boost.git boost +RUN cd /opt/boost && git submodule update --init --recursive +RUN mkdir -p /opt/libboost_build RUN mkdir -p /opt/libboost -RUN cd /opt && ls -RUN cd /opt/boost-boost-1.37.0 && emconfigure ./configure --prefix=/opt/libboost -RUN cd /opt/boost-boost-1.37.0 && emmake make install -j CPPFLAGS="-s USE_PTHREADS=1" cxxflags="-s USE_PTHREADS=1" +RUN cd /opt/boost && ./bootstrap.sh + +RUN cd /opt/boost && ./b2 -j4 toolset=emscripten \ + cflags="-s USE_PTHREADS=1" cxxflags="-s USE_PTHREADS=1" \ + --prefix=/opt/libboost \ + --build-dir=/opt/libboost_build \ + link=static \ + variant=release \ + threading=single \ + runtime-link=static WORKDIR /usr/src/