improve react builds for Docker

This commit is contained in:
David Bomba
2023-09-20 17:42:31 +10:00
parent 6aa39b4b57
commit b0ebac9719

View File

@@ -21,7 +21,14 @@ RUN curl -LGO $(curl https://api.github.com/repos/invoiceninja/ui/releases/lates
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
RUN cp -r dist/react/* /var/www/app/public/react/
RUN cp -r dist/react/* /var/www/app/public/react/ \
for file in dist/react/* ; do \
filename=$(basename -- "$file") \
extension="${filename##*.}" \
filename="${filename%.*}" \
version=v$INVOICENINJA_VERSION \
cp $file ../public/react/$filename"."$version"."$extension \
done
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/