emscripten_docker/povray_gcc/build_with_docker.sh

19 lines
334 B
Bash
Raw Normal View History

#!/bin/bash
2021-09-16 01:11:18 +00:00
POVRAY_VERSION=3.7-stable
if [ ! -d povray ]; then
git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
fi
cp build.sh povray/build.sh
2021-09-15 06:00:20 +00:00
sudo docker build . -t povray_gcc
cd povray
2021-09-15 06:00:20 +00:00
sudo docker run \
2021-09-16 00:16:30 +00:00
--cpus=2 \
-v $PWD:/usr/src \
povray_gcc \
sh -c 'cd /usr/src && sh build.sh'