Docker image base on composer/composer (alpine) and containing soap and xdebug extensions.
This images includes composer 2.0.7 and PHP 7.4. If you need to use older PHP version, you may want to check the 2.0.7-php7.3
branch.
Run:
docker build -t cdue/composer:latest .
If not already done, you might create a new docker buildx builder using the following command:
docker buildx create --name mybuilder
(If you don't remember if you already created one, you can check it using: docker buildx ls
)
and tell buildx to use this new builder:
docker buildx use mybuilder
you can then inspect buildx to see which platforms can be built:
docker buildx inspect --bootstrap
then eventually, run the following command to build (and push) it for given platforms:
docker buildx build --push --tag cdue/composer:2.0.7 --platform=linux/arm64,linux/amd64 .
Simply use the --push
option with the previous "build" command (it assume you already have docker login
and have granted access to the tag registry you're pointing to).
Or run :
docker image push cdue/composer:latest