From bca8404f5fa152f516efbcac57437239cce8e76f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 6 Jul 2023 23:54:13 +1000 Subject: [PATCH] work around for failing image build --- alpine/5/Dockerfile | 8 +++----- alpine/5/cache_buster | 2 +- alpine/5/rootfs/usr/local/bin/invoiceninja-init.sh | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/alpine/5/Dockerfile b/alpine/5/Dockerfile index 40bd1e5..f1b14f4 100644 --- a/alpine/5/Dockerfile +++ b/alpine/5/Dockerfile @@ -14,10 +14,8 @@ RUN set -eux; apk add curl unzip # Extract Invoice Ninja RUN mkdir -p /var/www/app \ && tar --strip-components=1 -xf /tmp/ninja.tar.gz -C /var/www/app/ \ - && mkdir -p /var/www/app/public/logo /var/www/app/storage \ - && mv /var/www/app/.env.example /var/www/app/.env \ - && rm -rf /var/www/app/docs /var/www/app/tests - + && mkdir -p /var/www/app/public/logo /var/www/app/storage + # Download and extract the latest react application 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 @@ -102,7 +100,7 @@ WORKDIR /var/www/app # Do not remove this ENV ENV IS_DOCKER true -RUN /usr/local/bin/composer install --no-dev --quiet +RUN /usr/local/bin/composer install --no-dev --no-scripts # Override the environment settings from projects .env file ENV APP_ENV production diff --git a/alpine/5/cache_buster b/alpine/5/cache_buster index fd4303a..4dd3d70 100644 --- a/alpine/5/cache_buster +++ b/alpine/5/cache_buster @@ -1 +1 @@ -Fri Jul 3 7:33:22 +00 2023 \ No newline at end of file +Fri Jul 4 7:33:22 +00 2023 \ No newline at end of file diff --git a/alpine/5/rootfs/usr/local/bin/invoiceninja-init.sh b/alpine/5/rootfs/usr/local/bin/invoiceninja-init.sh index 6ef4d30..7ae0488 100755 --- a/alpine/5/rootfs/usr/local/bin/invoiceninja-init.sh +++ b/alpine/5/rootfs/usr/local/bin/invoiceninja-init.sh @@ -24,7 +24,7 @@ docker_process_init_files() { echo done } - +php artisan package:discover --ansi php artisan config:cache php artisan optimize php artisan ninja:react