Commit 8956ca26 authored by Dhevan's avatar Dhevan

..

parent 15fec2b0
...@@ -3,4 +3,6 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql ...@@ -3,4 +3,6 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql
RUN apt-get update -y && apt-get install -y libpng-dev zlib1g-dev RUN apt-get update -y && apt-get install -y libpng-dev zlib1g-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-install gd RUN docker-php-ext-install gd
RUN apt-get -y install git
RUN apt-get -y install unzip
RUN a2enmod rewrite RUN a2enmod rewrite
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
#Install Apache
RUN apt-get update && apt-get install -y \
apache2 \
apache2-utils \
software-properties-common
RUN apt clean all
#Install PHP
RUN add-apt-repository ppa:ondrej/php
RUN apt update && apt install -y php5.6
#Install PHP Extension
RUN apt install -y php5.6-mysql php5.6-mysqli libapache2-mod-php5.6 php5.6-curl \
php5.6-pgsql php5.6-gettext php5.6-gd php5.6-intl php5.6-xml php5.6-iconv \
php5.6-ftp php5.6-xsl php5.6-json php5.6-ldap
RUN apt clean all
#Install Composerdocker docker
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
#Mod Rewrite
RUN a2enmod rewrite
RUN service apache2 start
CMD apachectl -D FOREGROUND
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment