mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-02-03 04:37:10 +01:00
improve react builds for Docker
This commit is contained in:
@@ -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 cp invoiceninja-react.zip /tmp/invoiceninja-react.zip
|
||||||
RUN unzip /tmp/invoiceninja-react.zip
|
RUN unzip /tmp/invoiceninja-react.zip
|
||||||
RUN find /var/www/app/public/react/ -type f -delete
|
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 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/
|
RUN cp -r dist/tinymce_6.4.2/* /var/www/app/public/tinymce_6.4.2/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user