diff --git a/povray_gcc/Dockerfile b/povray_gcc/Dockerfile index ed86349..3b39ebf 100644 --- a/povray_gcc/Dockerfile +++ b/povray_gcc/Dockerfile @@ -19,4 +19,10 @@ RUN apk add --update \ automake \ make +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 + RUN cat /etc/alpine-release \ No newline at end of file diff --git a/povray_gcc/compile.sh b/povray_gcc/compile.sh index a8888d8..03342c4 100644 --- a/povray_gcc/compile.sh +++ b/povray_gcc/compile.sh @@ -1,19 +1,11 @@ #!/bin/bash -POVRAY_VERSION=3.7-stable - -if [ ! -d povray ]; then - git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray -fi - bash build_docker.sh -cp build.sh povray/build.sh - cd povray sudo docker run \ --cpus=2 \ -v $PWD:/usr/src \ povray_gcc \ - sh -c 'cd /usr/src && sh build.sh' \ No newline at end of file + sh -c 'cp build.sh /usr/src/povray && cd /usr/src/povray && sh build.sh' \ No newline at end of file