https://github.com/cdoco/docker-php
A dockerfile for php
https://github.com/cdoco/docker-php
docker php
Last synced: 12 months ago
JSON representation
A dockerfile for php
- Host: GitHub
- URL: https://github.com/cdoco/docker-php
- Owner: cdoco
- License: mit
- Created: 2016-01-16T09:41:36.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T08:35:48.000Z (about 9 years ago)
- Last Synced: 2025-03-26T22:04:37.552Z (about 1 year ago)
- Topics: docker, php
- Language: Nginx
- Homepage:
- Size: 56.6 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PHP 7.0.14
[](https://travis-ci.org/cdoco/docker-php)
* Centos 7
* Nginx 1.9.9
* PHP 7.0.14
## Install Docker
* ubuntu: `sudo apt-get install docker.io`
* centos: `sudo yum install docker`
## Usage
* clone this repo: `git clone phttps://github.com/cdoco/docker-php`
* cd in: `cd docker-php`
* build it: `docker build -t php ./`
* run it: `docker run --name some-php -d -p 8090:80 php`
## Volume Dir
* volume local dir: `docker run --name some-php -v /some/content:/data/www:ro -d -p 8090:80 php`
## Edit The Configuration File
* you can modify the configuration file in the files directory.