Skip to content

wangxian/alpine-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alpine-php

This creates a Docker container running Nginx and PHP-FPM on Alpine Linux.

  1. SMALL with nginx+php-fpm (image only 14MB)
  2. FULL support swoole4 (image 32MB)

Desired directory structure:

alpine-php
├── Dockerfile
├── docker
│   ├── nginx.conf
│   ├── startup.sh
│   └── php-fpm.conf
└── public
    ├── js
    ├── img
    └── index.php

Build your own image

docker build -t myapp .

Usage

docker run -it --rm -p 8000:80 -v $(pwd):/app myapp

About

This creates a Docker container running Nginx and PHP-FPM on Alpine Linux.

Resources

License

Stars

Watchers

Forks

Packages

No packages published