dockerfile, composer phpstan
This commit is contained in:
@@ -32,6 +32,7 @@ RUN apt-get -y update \
|
||||
git \
|
||||
vim \
|
||||
symfony-cli \
|
||||
zip \
|
||||
&& cp $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini \
|
||||
&& install-php-extensions \
|
||||
pdo_pgsql \
|
||||
@@ -40,5 +41,5 @@ RUN apt-get -y update \
|
||||
apcu \
|
||||
xdebug \
|
||||
redis \
|
||||
&& composer install --ignore-platform-reqs --no-cache \
|
||||
&& composer install --ignore-platform-reqs --no-cache --optimize-autoloader \
|
||||
&& bin/console assets:install --symlink --relative
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
## NPM INSTALL ##
|
||||
FROM node:24.7.0 AS npm-install
|
||||
|
||||
@@ -31,7 +30,8 @@ RUN apt-get -y update \
|
||||
&& install-php-extensions \
|
||||
opcache \
|
||||
apcu \
|
||||
&& composer install --ignore-platform-reqs --no-cache -a --no-dev \
|
||||
redis \
|
||||
&& composer install --ignore-platform-reqs --no-cache -a --no-dev --optimize-autoloader \
|
||||
&& composer dump-autoload --no-dev --classmap-authoritative \
|
||||
&& bin/console assets:install --symlink --relative
|
||||
|
||||
@@ -54,9 +54,10 @@ WORKDIR /app
|
||||
|
||||
COPY --from=composer-install /app .
|
||||
|
||||
RUN cp $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini \
|
||||
RUN cp $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini \
|
||||
&& install-php-extensions \
|
||||
pdo_pgsql \
|
||||
pdo_mysql \
|
||||
opcache \
|
||||
apcu
|
||||
apcu \
|
||||
redis
|
Reference in New Issue
Block a user