Skip to content

Commit 356bd51

Browse files
committed
Add --ignore-platform-reqs flag to Composer
When using composer, the image may not have the required php extensions or modules to install successfully, so you have to manually pass the --ignore-platform-reqs flag each time. Adding this to the entry point of the image means that you can just run docker-compose run composer without additional flags. This avoids adding caveats to the documentation and adds to the "it just works" utility of docker.
1 parent 59bf8b2 commit 356bd51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ services:
5757
- php
5858
networks:
5959
- laravel
60+
entrypoint: ['composer', '--ignore-platform-reqs'] # Install without other php modules required
6061

6162
npm:
6263
image: node:13.7

0 commit comments

Comments
 (0)