Improve the alpine build process
This commit is contained in:
parent
4cb8f5d76b
commit
dee9f84732
|
@ -18,12 +18,17 @@ RUN apk add --update \
|
||||||
automake \
|
automake \
|
||||||
make
|
make
|
||||||
|
|
||||||
RUN git clone https://github.com/emscripten-core/emsdk.git
|
|
||||||
|
|
||||||
RUN pwd
|
RUN pwd
|
||||||
|
|
||||||
RUN cd /emsdk && ./emsdk install latest
|
WORKDIR /usr/src/
|
||||||
|
|
||||||
RUN cd /emsdk && ./emsdk activate latest
|
RUN cd /usr/src/ && git clone https://github.com/emscripten-core/emsdk.git emsdk
|
||||||
|
|
||||||
RUN cd /emsdk && source ./emsdk_env.sh
|
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
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo docker build . -t povray_wasm
|
|
@ -1,20 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#latest-stable#v3.7.0.0
|
bash ./build_docker.sh
|
||||||
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_alpine.sh povray/build.sh
|
|
||||||
|
|
||||||
sudo docker build . -t povray_wasm
|
|
||||||
|
|
||||||
cd povray
|
cd povray
|
||||||
|
|
||||||
sudo docker run \
|
sudo docker run \
|
||||||
--cpus=2 \
|
--cpus=2 \
|
||||||
-v $PWD:/usr/src \
|
-v $PWD:/usr/src/build \
|
||||||
povray_wasm \
|
povray_wasm \
|
||||||
sh -c 'cd /usr/src && bash build.sh'
|
sh -c 'cd /usr/src/povray && cp ../build/build_alpine.sh ./build.sh && bash build.sh'
|
Loading…
Reference in New Issue