Skip to content

Commit 1997a25

Browse files
authored
Merge pull request #28 from limingxinleo/1.1-dump
Added script post-autoload-dump.
2 parents fea8093 + 6c8762a commit 1997a25

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ WORKDIR /opt/www
4949

5050
# Composer Cache
5151
# COPY ./composer.* /opt/www/
52-
# RUN composer install --no-dev
52+
# RUN composer install --no-dev --no-scripts
5353

5454
COPY . /opt/www
55-
RUN composer install --no-dev \
56-
&& composer dump-autoload -o \
57-
&& composer init-proxy
55+
RUN composer install --no-dev -o
5856

5957
EXPOSE 9501
6058

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
"post-root-package-install": [
7676
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
7777
],
78+
"post-autoload-dump": [
79+
"init-proxy.sh"
80+
],
7881
"test": "co-phpunit -c phpunit.xml --colors=always",
7982
"cs-fix": "php-cs-fixer fix $1",
8083
"analyze": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config",

0 commit comments

Comments
 (0)