A docker image based on Ubuntu 16.04 with Apache2 + PHP 7.0
7.8K
A docker image based on Ubuntu 16.04 with Apache2 + PHP 7.0
Pull the latest stable version from the Docker Hub Registry
docker pull francarmona/docker-ubuntu16-apache2-php7:latest
If you prefer building the image from source, clone the repository and run docker build
git clone https://github.com/franCarmona/docker-ubuntu16-apache2-php7.git
docker build -t francarmona/docker-ubuntu16-apache2-php7 .
After building the image, run the container.
docker run --name apache2-php7 -v ~/path/to/code:/var/www -d -p [host-port]:80 francarmona/docker-ubuntu16-apache2-php7
Browse to http://localhost:[host-port] to view your app.
Some cases will be necessary to create a new image using this one as the base, for example to overwrite configuration files.
Create a Dockerfile with following content and then build the image.
FROM francarmona/docker-ubuntu16-apache2-php7
MAINTAINER Your Name <your@email>
# Apache site conf
ADD config/apache/apache-virtual-hosts.conf /etc/apache2/sites-enabled/000-default.conf
ADD config/apache/apache2.conf /etc/apache2/apache2.conf
80
/var/wwwContent type
Image
Digest
Size
122.7 MB
Last updated
over 8 years ago
docker pull francarmona/docker-ubuntu16-apache2-php7