dockerfile, composer phpstan
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2025-09-29 11:33:17 +02:00
parent 9318e753c1
commit 97289f96fd
4 changed files with 154 additions and 160 deletions

View File

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