DEV Community

Discussion on: Install composer in custom Docker image

Collapse
 
enigmaticnerd profile image
Santiago Medina • Edited

Hello and thanks for the article. I'm getting this error when I try to building with github actions. Anyone know what's happening?

Digest: sha256:ec4242a8c5bcc570948ef4558c3befa85c7550f14380910868f9282c19a33771
Status: Downloaded newer image for composer:2.2.7
install: unrecognized option '--ignore-platform-reqs'
Try 'install --help' for more information.
make: *** [Makefile:115: composer-install] Error 1
Error: Process completed with exit code 2.

Collapse
 
enigmaticnerd profile image
Santiago Medina

This is my command on Makefile

.PHONY: composer
composer composer-install composer-update composer-require composer-require-module composer-dump: composer-env-file
@docker run --rm $(INTERACTIVE) --volume $(current-dir):/app --user $(id -u):$(id -g) \
composer:2.2.7 $(CMD) \
--ignore-platform-reqs \
--no-ansi