Public Repository

Last pushed: a year ago
Short Description
Ubuntu 14.04 - PHP 7.0 - Apache2
Full Description

FROM ubuntu:14.04

##############################

INSTALLING SYSTEM SOFTWARE

##############################

fetch up to date package list

RUN sudo apt-get update -y

Install base tools (apt-add-repository and curl)

RUN sudo apt-get install --yes \
software-properties-common python-software-properties \
curl libcurl3 libcurl3-dev language-pack-en-base

#get php7 ppa
RUN sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php

RUN sudo apt-get update
RUN sudo apt-get update -y
RUN sudo apt-get upgrade -y

install application dependencies

RUN sudo apt-get install --yes apache2 \
php7.0 php7.0-mysql php7.0-curl \
git subversion zip unzip \
php7.0-mbstring php7.0-zip;

install composer

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN sudo chmod +x composer.phar
RUN sudo mv composer.phar /usr/local/bin/composer

enable apache mods

RUN a2enmod php7.0
RUN a2enmod rewrite

EXPOSE 80

Docker Pull Command
Owner
acidhax

Comments (0)