Build with alpine and emscripten rather than ubuntu.
This commit is contained in:
parent
d661331bf2
commit
6bc073945c
|
@ -1,5 +1,5 @@
|
|||
FROM emscripten/emsdk:2.0.26
|
||||
FROM alpine:latest
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt update
|
||||
RUN apk update
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y bash libz-dev libpng-dev libjpeg-dev libtiff-dev libopenexr-dev autoconf automake make libboost-all-dev
|
||||
RUN apk add --update boost-dev zlib-dev libpng-dev jpeg-dev tiff-dev openexr-dev autoconf automake emscriptenmake
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
FROM emscripten/emsdk:2.0.26
|
||||
|
||||
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 libboost-all-dev
|
|
@ -0,0 +1,8 @@
|
|||
EMAIL="himattmcwilliams@gmail.com"
|
||||
NAME="Matt McWilliams"
|
||||
|
||||
cd unix/
|
||||
sh prebuild.sh
|
||||
cd ../
|
||||
emconfigure ./configure COMPILED_BY="$NAME <$EMAIL>"
|
||||
emmake make -j
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
#latest-stable
|
||||
POVRAY_VERSION=latest-stable
|
||||
#v3.7.0.0
|
||||
|
||||
if [ ! -d povray ]; then
|
||||
git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
|
||||
fi
|
||||
|
||||
cp build_alpine.sh povray/build.sh
|
||||
|
||||
sudo docker build . -t povray_wasm
|
||||
|
||||
cd povray
|
||||
|
||||
sudo docker run \
|
||||
-v $PWD:/usr/src \
|
||||
povray_wasm \
|
||||
sh -c 'cd /usr/src && bash build.sh'
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
#latest-stable
|
||||
POVRAY_VERSION=v3.7.0.0
|
||||
POVRAY_VERSION=latest-stable
|
||||
#v3.7.0.0
|
||||
|
||||
if [ ! -d povray ]; then
|
||||
git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
|
||||
|
|
Loading…
Reference in New Issue