-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #524 from turbo124/master
Updates for docker files to use PHP 8.2
- Loading branch information
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | ||
|
||
|
@@ -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]>" | ||
|
||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters