Robin Thoni 4cd8ada9ab README | il y a 8 ans | |
---|---|---|
.gitignore | il y a 8 ans | |
Dockerfile | il y a 8 ans | |
README.md | il y a 8 ans | |
apache2.conf | il y a 8 ans | |
docker-php-ext-configure | il y a 8 ans | |
docker-php-ext-enable | il y a 8 ans | |
docker-php-ext-install | il y a 8 ans | |
php-apache.ini | il y a 8 ans | |
php-cli.ini | il y a 8 ans | |
run.sh | il y a 8 ans |
This docker file allows you to deploy a php 7.0 application in a couple of seconds on any server configuration. See docker help for more information.
Build the image:
git clone https://git.rthoni.com/robin.thoni/docker-php7.0-apache
cd docker-php7.0-apache
docker build -t php7.0-apache .
Run a container:
docker run -d -v /path/to/my/php/application/:/var/www/html -p 8000:80 --name=container-my-php-application-apache php7.0-apache
NB: /path/to/my/application/public/ folder must exists
Browse:
Open https://127.0.0.1:8000/ in a web browser.