Skip to content

Commit

Permalink
Updates for docker files to use PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Jul 9, 2023
1 parent f452616 commit c0150de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit c0150de

Please sign in to comment.