This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Docker image for running Magento 2 CLI commands in CI/CD pipelines. Published to Docker Hub at erfanimani/magento2-cli.
# Standard build
docker build . -t erfanimani/magento2-cli:{version} -t erfanimani/magento2-cli:latest
# Build on Apple Silicon (for linux/amd64 compatibility)
docker buildx build --platform=linux/amd64 . -t erfanimani/magento2-cli:{version}
# Push to Docker Hub
docker push erfanimani/magento2-cli:{version}
docker push erfanimani/magento2-cli:latestThis is a minimal Dockerfile-based project with two files:
Dockerfile- PHP base image with Magento 2 required extensions and Composerdefault-php.ini- PHP configuration (memory_limit = 1G)
Tags follow the pattern {PHP_VERSION}-{RELEASE} (e.g., 8.4-1, 8.3-1). The PHP version in the Dockerfile FROM directive should match the git branch/tag.