Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.02 KB

File metadata and controls

31 lines (20 loc) · 1.02 KB

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Docker image for running Magento 2 CLI commands in CI/CD pipelines. Published to Docker Hub at erfanimani/magento2-cli.

Build Commands

# 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:latest

Architecture

This is a minimal Dockerfile-based project with two files:

  • Dockerfile - PHP base image with Magento 2 required extensions and Composer
  • default-php.ini - PHP configuration (memory_limit = 1G)

Version Tagging

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.