This container is a good starting point if you want to create a PHP web application using apache as the webserver. The image is built ontop of Alpine Linux which is a lightweight, security oriented Linux distro.
The container is meant to be small and lightweight, so in turn is fairly minimal by design. However, the container should have everything contained that you would need to create a project that is PHP based and served by Apache.
PHP 5.6.14
JSON
GD
Common
SOAP
MCrypt
PDO
MySQLi
XML
CURL
Phar
Pear
Cli
OpenSSL
DOM
PDO
ctype
posix
Apache 2.4.16
SSL
Proxy
While you're highly unlikely to use this image as you entire container, and are more likely to use this as your base image, below are some commands that you can use to make additions and changes to the image.
FROM mtahv3/oberd-webapp:0.1
To start the container, you would use the following command
$ docker run --name app1 -d -P mtahv3/oberd-webapp:0.1
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7a3e6c2cc5a6 mtahv3/oberd-webapp:0.1 "apachectl -D FOREGRO" 4 seconds ago Up 3 seconds 0.0.0.0:32775->80/tcp, 0.0.0.0:32774->443/tcp app1
While the containers should more or less be treated as immutable servers, you can access the container and get a command line with the following command.
$ docker exec -it app1 sh
While you should add any packages to the container via the Dockerfile and submitting a Pull Request on this repo, if you need to play around with a container to get what you need before you edit the Dockerfile the following commands may help
Updating the repository indexes
$ apk update
Searching the repos
$ apk search [term]
Adding a package
$ apk add [package]
Content type
Image
Digest
Size
20.7 MB
Last updated
over 9 years ago
docker pull mtahv3/oberd-webapp:0.8