2021-09-22 05:53:48 +00:00
|
|
|
FROM emscripten/emsdk:latest
|
2021-08-31 19:15:32 +00:00
|
|
|
|
2021-09-22 06:00:54 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt update
|
|
|
|
|
2021-11-10 04:54:38 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt install -y bash \
|
2021-09-22 06:00:54 +00:00
|
|
|
libz-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libjpeg-dev \
|
|
|
|
libtiff-dev \
|
|
|
|
libopenexr-dev \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
2021-11-10 04:54:38 +00:00
|
|
|
make
|
|
|
|
|
2021-11-10 05:38:12 +00:00
|
|
|
RUN cd /opt && git clone https://github.com/boostorg/boost.git boost
|
|
|
|
RUN cd /opt/boost && git submodule update --init --recursive
|
2021-11-10 04:54:38 +00:00
|
|
|
|
2022-07-22 14:45:57 +00:00
|
|
|
RUN cd /opt/boost && ./bootstrap.sh --with-libraries=system,date_time,filesystem,thread
|
2021-11-10 05:38:12 +00:00
|
|
|
|
|
|
|
RUN cd /opt/boost && ./b2 -j4 toolset=emscripten \
|
2022-07-22 14:45:57 +00:00
|
|
|
cflags="-s USE_PTHREADS=1"\
|
|
|
|
cxxflags="-s USE_PTHREADS=1" \
|
2021-11-10 05:38:12 +00:00
|
|
|
--prefix=/opt/libboost \
|
|
|
|
--build-dir=/opt/libboost_build \
|
|
|
|
link=static \
|
|
|
|
variant=release \
|
|
|
|
threading=single \
|
|
|
|
runtime-link=static
|
2021-09-22 06:00:54 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/src/
|
|
|
|
|
|
|
|
ENV POVRAY_VERSION=3.7-stable
|
|
|
|
RUN cd /usr/src/ && git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
|