Skip to content

Commit

Permalink
Merge pull request #28 from limingxinleo/1.1-dump
Browse files Browse the repository at this point in the history
Added script post-autoload-dump.
  • Loading branch information
limingxinleo authored Nov 29, 2019
2 parents fea8093 + 6c8762a commit 1997a25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ WORKDIR /opt/www

# Composer Cache
# COPY ./composer.* /opt/www/
# RUN composer install --no-dev
# RUN composer install --no-dev --no-scripts

COPY . /opt/www
RUN composer install --no-dev \
&& composer dump-autoload -o \
&& composer init-proxy
RUN composer install --no-dev -o

EXPOSE 9501

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-autoload-dump": [
"init-proxy.sh"
],
"test": "co-phpunit -c phpunit.xml --colors=always",
"cs-fix": "php-cs-fixer fix $1",
"analyze": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config",
Expand Down

0 comments on commit 1997a25

Please sign in to comment.