emscripten_docker/povray_wasm/Dockerfile

47 lines
1.2 KiB
Docker
Raw Permalink Normal View History

FROM emscripten/emsdk:latest
RUN DEBIAN_FRONTEND=noninteractive apt update
2021-11-10 04:54:38 +00:00
RUN DEBIAN_FRONTEND=noninteractive apt install -y bash \
libz-dev \
libpng-dev \
libjpeg-dev \
libtiff-dev \
libopenexr-dev \
2022-11-10 04:49:14 +00:00
zlib1g-dev \
autoconf \
automake \
2021-11-10 04:54:38 +00:00
make
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
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 \
2022-11-10 04:49:14 +00:00
link=static,shared \
variant=release \
threading=single \
runtime-link=static
WORKDIR /opt/boost/stage/lib/
RUN emar q libboost_atomic.a libboost_atomic.bc
RUN emar q libboost_date_time.a libboost_date_time.bc
RUN emar q libboost_filesystem.a libboost_filesystem.bc
RUN emar q libboost_system.a libboost_system.bc
RUN emar q libboost_thread.a libboost_thread.bc
2022-11-10 04:49:14 +00:00
#RUN embuilder.py build USER
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
WORKDIR /usr/src/povray