work around for failing image build

This commit is contained in:
David Bomba
2023-07-06 23:54:13 +10:00
parent 3cf7c28875
commit bca8404f5f
3 changed files with 5 additions and 7 deletions

View File

@@ -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

View File

@@ -1 +1 @@
Fri Jul 3 7:33:22 +00 2023
Fri Jul 4 7:33:22 +00 2023

View File

@@ -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