diff --git a/Dockerfile-71 b/Dockerfile-71 new file mode 100644 index 0000000..fe09394 --- /dev/null +++ b/Dockerfile-71 @@ -0,0 +1,73 @@ +# +#-------------------------------------------------------------------------- +# Image Setup +#-------------------------------------------------------------------------- +# + +FROM phusion/baseimage:latest + +MAINTAINER Mahmoud Zalt + +RUN DEBIAN_FRONTEND=noninteractive +RUN locale-gen en_US.UTF-8 + +ENV LANGUAGE=en_US.UTF-8 +ENV LC_ALL=en_US.UTF-8 +ENV LC_CTYPE=UTF-8 +ENV LANG=en_US.UTF-8 +ENV TERM xterm + +# Add the "PHP 7" ppa +RUN apt-get install -y software-properties-common && \ + add-apt-repository -y ppa:ondrej/php + +# +#-------------------------------------------------------------------------- +# Software's Installation +#-------------------------------------------------------------------------- +# + +# Install "PHP Extentions", "libraries", "Software's" +RUN apt-get update && \ + apt-get install -y --force-yes \ + php7.1-cli \ + php7.1-common \ + php7.1-curl \ + php7.1-json \ + php7.1-xml \ + php7.1-mbstring \ + php7.1-mcrypt \ + php7.1-mysql \ + php7.1-pgsql \ + php7.1-sqlite \ + php7.1-sqlite3 \ + php7.1-zip \ + php7.1-memcached \ + php7.1-gd \ + pkg-config \ + php-dev \ + libcurl4-openssl-dev \ + libedit-dev \ + libssl-dev \ + libxml2-dev \ + xz-utils \ + libsqlite3-dev \ + sqlite3 \ + git \ + curl \ + vim \ + nano \ + postgresql-client \ + && apt-get clean + +##################################### +# Composer: +##################################### + +# Install composer and add its bin to the PATH. +RUN curl -s http://getcomposer.org/installer | php && \ + echo "export PATH=${PATH}:/var/www/vendor/bin" >> ~/.bashrc && \ + mv composer.phar /usr/local/bin/composer + +# Source the bash +RUN . ~/.bashrc