Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for docker files to use PHP 8.2 #524

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions alpine/5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PHP_VERSION=8.1
ARG PHP_VERSION=8.2
ARG BAK_STORAGE_PATH=/var/www/app/docker-backup-storage/
ARG BAK_PUBLIC_PATH=/var/www/app/docker-backup-public/

Expand Down Expand Up @@ -38,7 +38,7 @@ RUN --mount=target=/var/www/app/node_modules,type=cache \
&& mv /var/www/app/public $BAK_PUBLIC_PATH

# Prepare php image
FROM php:${PHP_VERSION}-fpm-alpine3.15 as prod
FROM php:${PHP_VERSION}-fpm-alpine as prod

LABEL maintainer="David Bomba <[email protected]>"

Expand Down Expand Up @@ -103,7 +103,8 @@ WORKDIR /var/www/app

# Do not remove this ENV
ENV IS_DOCKER true
RUN /usr/local/bin/composer install --no-dev --no-scripts --no-interaction --no-autoloader
RUN /usr/local/bin/composer install --no-dev --no-scripts --no-interaction
RUN /usr/local/bin/composer dump-autoload --optimize --no-dev --classmap-authoritative --no-scripts --no-interaction

# Override the environment settings from projects .env file
ENV APP_ENV production
Expand Down
2 changes: 1 addition & 1 deletion alpine/5/rootfs/usr/local/bin/invoiceninja-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ docker_process_init_files() {
done
}

composer dump-autoload
php artisan config:cache
php artisan optimize
php artisan package:discover
php artisan ninja:react

# Check if DB works, if not crash the app.
Expand Down
Loading