Commit 67e00213 authored by Oleksandr Chernyi's avatar Oleksandr Chernyi
Browse files

Changed Docker file for php container.

Fixed issue ('ascii' codec can't decode byte 0xc5 in position 92: ordinal not in range(128))
parent 91c1c0a6
FROM ubuntu:16.04
MAINTAINER Igor Petruniv, i.petruniv@internetdevels.com
ENV DEBIAN_FRONTEND=noninteractive
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
software-properties-common \
apt-utils \
libfreetype6-dev \
mc \
curl \
vim \
wget
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https ca-certificates
RUN DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:ondrej/php
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get --fix-missing update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-soap php5.6-phpdbg php5.6-fpm libphp5.6-embed php5.6-dev php5.6-common php5.6-curl php5.6-gd php5.6-imap php5.6-mysql php5.6-pgsql php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-sybase php5.6-json php5.6-bz2 php5.6-mcrypt php5.6-odbc php5.6-readline php5.6-interbase php5.6-xmlrpc php5.6-gmp php5.6-xsl php5.6-bcmath php5.6-zip php5.6-dba \
php-mongodb php-geoip php-gmagick php-memcached php-mongo php-solr php-redis php-radius php-uploadprogress \
msmtp mysql-utilities mysql-client php-mysqlnd-ms \
graphviz graphviz-dev libgvc6 \
php-xdebug \
libreoffice
MAINTAINER Igor Petruniv, i.petruniv@internetdevels.com
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --fix-missing \
software-properties-common \
# python-software-properties \
libfreetype6-dev \
apt-utils \
mc \
curl \
vim \
wget
#RUN apt-get install -y --no-install-recommends apt-utils
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C
RUN apt-get install -y apt-transport-https ca-certificates
RUN LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
RUN apt-get update && apt-get --fix-missing update
RUN apt-get install -y php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-soap php5.6-phpdbg php5.6-fpm libphp5.6-embed php5.6-dev php5.6-common php5.6-curl php5.6-gd php5.6-imap php5.6-mysql php5.6-pgsql php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-sybase php5.6-json php5.6-bz2 php5.6-mcrypt php5.6-odbc php5.6-readline php5.6-interbase php5.6-xmlrpc php5.6-gmp php5.6-xsl php5.6-bcmath php5.6-zip php5.6-dba \
php-mongodb php-geoip php-gmagick php-memcached php-mongo php-solr php-redis php-radius php-uploadprogress \
msmtp mysql-utilities mysql-client php-mysqlnd-ms \
graphviz graphviz-dev libgvc6 \
php-xdebug \
libreoffice \
cron rsyslog
# RUN mkfifo /var/spool/postfix/public/pickup
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y php-fpm php-common php-db php-fpdf php-fxsl php-geoip php-gettext php-mongodb php-net-ldap php-redis php-solr php-radius phpreports php-pear php-soap php-dev php-all-dev php-bcmath php-curl php-gd php-gmp php-imap php-interbase php-json php-mbstring php-mcrypt php-mysql php-pgsql php-pspell php-readline php-recode php-sybase php-xmlrpc php-zip php-memcached php-odbc php-gmagick php-xml php-mongo php-odbc php-uploadprogress
RUN apt-get remove -y php7*
RUN pecl install xhprof-beta; pecl install xdebug
RUN echo "extension=xhprof.so" > /etc/php/5.6/mods-available/xhprof.ini
RUN /usr/sbin/phpenmod xhprof; /usr/sbin/phpenmod xdebug
RUN apt autoremove -y
RUN mkdir -p /run/php
RUN mkdir -p /etc/php/5.6
#RUN mkfifo /var/spool/postfix/public/pickup
RUN apt-get install -y php-fpm php-common php-db php-fpdf php-fxsl php-geoip php-gettext php-mongodb php-net-ldap php-redis php-solr php-radius phpreports php-pear php-soap php-dev php-all-dev php-bcmath php-curl php-gd php-gmp php-imap php-interbase php-json php-mbstring php-mcrypt php-mysql php-pgsql php-pspell php-readline php-recode php-sybase php-xmlrpc php-zip php-memcached php-odbc php-gmagick php-xml php-mongo php-odbc php-uploadprogress
RUN apt-get remove -y php7*
RUN pecl install xhprof-beta; pecl install xdebug
RUN echo "extension=xhprof.so" > /etc/php/5.6/mods-available/xhprof.ini
RUN /usr/sbin/phpenmod xhprof; /usr/sbin/phpenmod xdebug
RUN apt autoremove -y
RUN mkdir -p /run/php
RUN mkdir -p /etc/php/5.6
# Install Drush globally
RUN php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush8
RUN chmod +x drush8
RUN mv drush8 /usr/local/bin
RUN echo "alias drush='/usr/bin/php5.6 /usr/local/bin/drush8'" >> ~/.bashrc
# Install Drush globally
RUN php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush8
RUN chmod +x drush8
RUN mv drush8 /usr/local/bin
RUN echo "alias drush='/usr/bin/php5.6 /usr/local/bin/drush8'" >> ~/.bashrc
# Install Drupal Console globally
RUN php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
RUN mv drupal.phar /usr/local/bin/drupal
RUN chmod +x /usr/local/bin/drupal
RUN echo "alias drupal='/usr/bin/php5.6 /usr/local/bin/drupal'" >> ~/.bashrc
# Install Drupal Console globally
RUN php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
RUN mv drupal.phar /usr/local/bin/drupal
RUN chmod +x /usr/local/bin/drupal
RUN echo "alias drupal='/usr/bin/php5.6 /usr/local/bin/drupal'" >> ~/.bashrc
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN chmod +x /usr/local/bin/composer
RUN echo "alias composer='/usr/bin/php5.6 /usr/local/bin/composer'" >> ~/.bashrc
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN chmod +x /usr/local/bin/composer
RUN echo "alias composer='/usr/bin/php5.6 /usr/local/bin/composer'" >> ~/.bashrc
EXPOSE 9000
ENTRYPOINT /usr/sbin/php-fpm5.6 --nodaemonize --fpm-config /etc/php/5.6/fpm/php-fpm.conf
EXPOSE 9000
WORKDIR /var/www
ENTRYPOINT /usr/sbin/php-fpm5.6 --nodaemonize --fpm-config /etc/php/5.6/fpm/php-fpm.conf
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