diff --git a/alpine/5/Dockerfile b/alpine/5/Dockerfile index 9b19334..c359eb9 100644 --- a/alpine/5/Dockerfile +++ b/alpine/5/Dockerfile @@ -20,9 +20,7 @@ RUN mkdir -p /var/www/app \ RUN curl -LGO $(curl https://api.github.com/repos/invoiceninja/ui/releases/latest | grep "browser_download_url" | awk '{ print $2 }' | sed 's/,$//' | sed 's/"//g'); RUN cp invoiceninja-react.zip /tmp/invoiceninja-react.zip RUN unzip /tmp/invoiceninja-react.zip -RUN find /var/www/app/public/react/ -type f -delete -COPY loop.sh loop.sh -RUN ./loop.sh +RUN cp -r dist/react/* /var/www/app/public/react/v$INVOICENINJA_VERSION/ RUN mkdir -p /var/www/app/public/tinymce_6.4.2/tinymce/js/ RUN cp -r dist/tinymce_6.4.2/* /var/www/app/public/tinymce_6.4.2/ diff --git a/alpine/5/loop.sh b/alpine/5/loop.sh deleted file mode 100755 index b7731e3..0000000 --- a/alpine/5/loop.sh +++ /dev/null @@ -1,8 +0,0 @@ -for file in dist/react/* ; do -filename=$(basename -- "$file") -extension="${filename##*.}" -filename="${filename%.*}" -version=v$INVOICENINJA_VERSION -echo "Copying $file to /var/www/app/public/react/$filename"."$version"."$extension" -cp $file /var/www/app/public/react/$filename"."$version"."$extension -done \ No newline at end of file