Sign inSign up

malitta/php-base

By malitta

Updated over 5 years ago

Lightweight image for serving a PHP app over HTTP/HTTPS. Intended to be used as a base image.

Image
2

730

malitta/php-base repository overview

Docker PHP Base Image

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.

Docker Automated buil Docker Pulls

Contains

  • Ubuntu (latest LTS)
    • Supervisor
    • Vim
  • PHP 7.3
    • Composer
  • Apache 2.4 (HTTP/1.1)

Usage

Note: The default virtualhost file points to /var/www/public

Extending the Dockerfile

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
Running a container

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.

Tag summary

Content type

Image

Digest

Size

175.2 MB

Last updated

over 5 years ago

docker pull malitta/php-base