Skip to content

axklim/yii2-docker

 
 

Repository files navigation

Yii2 PHP Docker Image


Stable Build Status Development pipeline status

This is the repo of the official Yii 2.0 Framework image on DockerHub for PHP.

Status

This is still work in progress. The images available on docker hub are in public preview state.

About

These Docker images are built on top of the official PHP Docker image, they contain additional PHP extensions required to run Yii 2.0 framework, but no code of the framework itself. The Dockerfile(s) of this repository are designed to build from different PHP-versions by using build arguments.

Setup

cp .env-dist .env

Adjust the versions in .env if you want to build a specific version.

Note: Please make sure to use a matching combination of DOCKERFILE_FLAVOUR and PHP_BASE_IMAGE_VERSION

Configuration

  • PHP_ENABLE_XDEBUG whether to load an enable Xdebug, defaults to 0 (false)
  • PHP_USER_ID (Debian only) user ID, when running commands as webserver (www-data), see also #15

Building

docker-compose build

Testing

docker-compose run --rm php php /tests/requirements.php

Documentation

More information can be found in the docs folder.

FAQ

  • Error code 139 on Alpine for PHP 5.6-7.1 results from a broken ImageMagick installation

About

Official Docker images suitable for Yii

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 96.2%
  • Shell 3.8%