emscripten_docker/povray_wasm/Dockerfile

34 lines
867 B
Docker

FROM emscripten/emsdk:latest
RUN DEBIAN_FRONTEND=noninteractive apt update
RUN DEBIAN_FRONTEND=noninteractive apt install -y bash \
libz-dev \
libpng-dev \
libjpeg-dev \
libtiff-dev \
libopenexr-dev \
autoconf \
automake \
make
RUN cd /opt && git clone --recursive https://github.com/boostorg/boost.git
RUN mkdir -p /opt/libboost_build
RUN mkdir -p /opt/libboost
RUN cd /opt/boost && ./bootstrap.sh --with-libraries=system,date_time,filesystem,thread
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/
ENV POVRAY_VERSION=3.7-stable
RUN cd /usr/src/ && git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray