/php

docker images

Primary LanguageDockerfileMIT LicenseMIT

PHP Docker images

The docker images are divided into two:

  • Production
  • Local development

Swoole development Docker images

Uses Swoole Web server with Nginx in front. Node, npm, yarn is also included.

Production Docker images

These images are minimalistic and ready for production (no node, npm, xdebug etc). Opcache is enabled by default.

Local development Docker images

These images are created for local development. Xdebug, Node and Yarn are all included. no opcache.

Can be used together with Dock a easy docker cli tuned for Laravel Development.

How to build

If you want to customize it, then pull down the repo and build it:

cd 8.1/fpm
docker build --no-cache -t viezel/php:8.1 -f Dockerfile .
docker push viezel/php:8.1
docker build --no-cache -t viezel/php-dev:8.1 -f Dockerfile .
docker build --no-cache -t viezel/php-dev-swoole:8.1 -f Dockerfile .