From 5dbf67100b2daf24ce193ec94d9dd9ca2a73a9e3 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Wed, 22 Sep 2021 00:37:03 -0400 Subject: [PATCH] New povray_gcc strat --- povray_gcc/Dockerfile | 6 ++++++ povray_gcc/compile.sh | 10 +--------- 2 files changed, 7 insertions(+), 9 deletions(-) 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