Sign inSign up

odro/php

By odro

Updated almost 8 years ago

Image
0

776

odro/php repository overview

FROM php:7.2-apache

RUN apt-get update -y &&
apt-get upgrade -y &&
docker-php-ext-install mysqli pdo_mysql &&
apt-get clean &&
rm -fr /var/lib/apt/lists/*

COPY 000-default.conf /etc/apache2/sites-available/000-default.conf

RUN a2enmod rewrite &&
mkdir /var/www/html/public &&
service apache2 restart

<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html/public

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory /var/www/html/public/>
	   Options Indexes FollowSymLinks MultiViews
	   AllowOverride All
	   Order allow,deny
	   allow from all
</Directory>

Tag summary

Content type

Image

Digest

Size

130.3 MB

Last updated

almost 8 years ago

docker pull odro/php