Public | Automated Build

Last pushed: a month ago
Short Description
Short description is empty for this repo.
Full Description

It's a simple Docker image with Apache2 and PHP5.

Use it like this in your Dockerfile:

FROM yegor256/apache-php

This is how you can create a Docker image that runs
an Apache server with a PHP site:

FROM yegor256/apache-php
WORKDIR /app
ADD app/ /app
ADD start.sh /start.sh
RUN chmod a+x /start.sh
RUN rm -fr /var/www/html && ln -s /app /var/www/html
RUN chown www-data:www-data /app -R
EXPOSE 80
CMD ["/start.sh"]

You will also have to create start.sh file with this
content inside:

#!/bin/bash
source /etc/apache2/envvars
/usr/sbin/apache2 -D FOREGROUND

Here is a live example
from thindeck.com hosting project.

Docker Pull Command
Owner
yegor256
Source Repository