Skip to content

Commit

Permalink
Update Dockerfile, format whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-damasiewicz committed Jun 7, 2023
1 parent 559a9c0 commit eb24770
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ COPY --from=php_extension_installer --link /usr/bin/install-php-extensions /usr/

# persistent / runtime deps
RUN apk add --no-cache \
acl \
fcgi \
file \
gettext \
git \
acl \
fcgi \
file \
gettext \
git \
;

RUN set -eux; \
install-php-extensions \
apcu \
intl \
opcache \
zip \
;
install-php-extensions \
apcu \
intl \
opcache \
zip \
;

###> recipes ###
###> doctrine/doctrine-bundle ###
Expand Down Expand Up @@ -89,23 +89,23 @@ COPY --from=composer --link /composer /usr/bin/composer
# prevent the reinstallation of vendors at every changes in the source code
COPY --link composer.* symfony.* ./
RUN set -eux; \
if [ -f composer.json ]; then \
composer install --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress; \
composer clear-cache; \
fi
if [ -f composer.json ]; then \
composer install --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress; \
composer clear-cache; \
fi

# copy sources
COPY --link . ./
RUN rm -Rf docker/

RUN set -eux; \
mkdir -p var/cache var/log; \
if [ -f composer.json ]; then \
composer dump-autoload --classmap-authoritative --no-dev; \
composer dump-env prod; \
composer run-script --no-dev post-install-cmd; \
chmod +x bin/console; sync; \
fi
if [ -f composer.json ]; then \
composer dump-autoload --classmap-authoritative --no-dev; \
composer dump-env prod; \
composer run-script --no-dev post-install-cmd; \
chmod +x bin/console; sync; \
fi

# Dev image
FROM app_php AS app_php_dev
Expand All @@ -121,8 +121,8 @@ COPY --link docker/php/conf.d/app.dev.ini $PHP_INI_DIR/conf.d/

RUN set -eux; \
install-php-extensions \
xdebug \
;
xdebug \
;

RUN rm -f .env.local.php

Expand Down

0 comments on commit eb24770

Please sign in to comment.