emscripten_docker/povray_wasm/Dockerfile

27 lines
772 B
Docker
Raw 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 \
autoconf \
automake \
2021-11-10 04:54:38 +00:00
make
2021-11-10 05:28:30 +00:00
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
2021-11-10 04:54:38 +00:00
RUN mkdir -p /opt/libboost
2021-11-10 05:29:50 +00:00
RUN cd /opt && ls
2021-11-10 05:32:24 +00:00
RUN cd /opt/boost-boost-1.37.0 && emconfigure ./configure --prefix=/opt/libboost
2021-11-10 05:28:30 +00:00
2021-11-10 05:32:24 +00:00
RUN cd /opt/boost-boost-1.37.0 && emmake make install -j CPPFLAGS="-s USE_PTHREADS=1" cxxflags="-s USE_PTHREADS=1"
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