Lightweight image for serving a PHP app over HTTP/HTTPS. Intended to be used as a base image.
730
Lightweight image containing the bare necessities for running a PHP app over HTTP/HTTPS. This is intended to be used as a base image for your app specific Dockerfiles. See docker-images repository for extensions of this image. Or read this for a quick introduction on how this image can be extended to suit your app.
Note: The default virtualhost file points to /var/www/public
Create a Dockerfile and add other dependencies that your app requires. See here for addons that you can use if you are planning to have a seperate Dockerfile for development.
FROM malitta/php-base
RUN apt-get install -y php7.3-pgsql
COPY . /var/www
docker run -dit -p 8080:80 -v $(pwd):/var/www --name mywebapp malitta/php-base
Visit localhost:8080 from the browser and you should see the PHP Version Info page.
Content type
Image
Digest
Size
175.2 MB
Last updated
over 5 years ago
docker pull malitta/php-base