mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-06 22:47:26 +01:00
looping in react folder
This commit is contained in:
@@ -21,14 +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/ \
|
||||
for file in dist/react/* ; do \
|
||||
RUN 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
|
||||
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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user