emscripten_docker/povray_wasm/Dockerfile

34 lines
620 B
Docker

FROM frolvlad/alpine-gxx
RUN apk update
RUN apk add --update \
bash \
git \
coreutils \
build-base \
boost-dev \
zlib-dev \
libpng-dev \
jpeg-dev \
tiff-dev \
openexr-dev \
sdl-dev \
autoconf \
automake \
make
RUN pwd
WORKDIR /usr/src/
RUN cd /usr/src/ && git clone https://github.com/emscripten-core/emsdk.git emsdk
ENV POVRAY_VERSION=3.7-stable
RUN cd /usr/src/ && git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
RUN cd /usr/src/emsdk && ./emsdk install latest
RUN cd /usr/src/emsdk && ./emsdk activate latest
RUN cd /usr/src/emsdk && source ./emsdk_env.sh