Skip to content

Dockerfile for utils PHP images.

Notifications You must be signed in to change notification settings

phpimages/dockerfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker PHP utils images

Images

See Packages section

  • ghcr.io/phpimages/php-cli-xdebug : PHP CLI image with xdebug
  • ghcr.io/phpimages/php-cli-allinclusive: PHP CLI image with commonly used extensions
  • ghcr.io/phpimages/phpstan: PHP CLI image with phpstan

Tip

All images has composer installed

Usage

# Run composer install with any php version. 
# Example 8.2 : ghcr.io/phpimages/php-cli-xdebug:8.2-alpine
docker run -v .:/opt -u $(id -u):$(id -g) ghcr.io/phpimages/php-cli-xdebug:8.2-alpine composer install 

WORKDIR is /opt on each images use -v to map your current dir with /opt.

Intellij/PHPStorm integration

If you want to run php commands on IntelliJ for PHPUnit or Composer you will need a PHP interpreter.

On Settings > Languages and Framework > PHP define a new interpreter from Docker :

PHP interpreter