Imagen con php7.0 y apache2 instalados
150
FROM debian:jessie
RUN apt-get update && apt-get install -y wget
&& echo "deb http://packages.dotdeb.org jessie all" > /etc/apt/sources.list.d/php.list
&& echo "deb-src http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list.d/php.list
&& wget https://www.dotdeb.org/dotdeb.gpg
&& apt-key add dotdeb.gpg
&& apt-get update
&& apt-get install -y php7.0 php7.0-common
php7.0-mysql
php7.0-curl
php7.0-gd
php7.0-imagick
php7.0-mcrypt
php7.0-xmlrpc
php7.0-xsl
libapache2-mod-php7.0
apache2
RUN apt-get install -y curl apt-transport-https
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
&& curl https://packages.microsoft.com/config/debian/8/prod.list > /etc/apt/sources.list.d/mssql-release.list
&& apt-get install -y locales
&& echo "es_ES.UTF-8 UTF-8" > /etc/locale.gen
&& locale-gen
&& apt-get update
&& ACCEPT_EULA=Y apt-get install -y msodbcsql
&& apt-get install -y unixodbc-dev php-pear
RUN pear config-set php_ini php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||" system
&& pecl install sqlsrv
&& pecl install pdo_sqlsrv
&& echo "extension=sqlsrv.so" >> /etc/php/7.0/apache2/php.ini
&& echo "extension=pdo_sqlsrv.so" >> /etc/php/7.0/apache2/php.ini
RUN a2dismod mpm_event
&& a2enmod mpm_prefork
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
&& curl https://packages.microsoft.com/config/debian/8/prod.list > /etc/apt/sources.list.d/mssql-release.list
&& apt-get update
&& ACCEPT_EULA=Y apt-get install -y msodbcsql17
&& ACCEPT_EULA=Y apt-get install -y mssql-tools
RUN apt-get clean
&& a2enmod rewrite
ENV APACHE_LOCK_DIR /var/lock/apache2 ENV APACHE_RUN_DIR /var/run/apache2 ENV APACHE_PID_FILE ${APACHE_RUN_DIR}/apache2.pid ENV APACHE_LOG_DIR /var/log/apache2 ENV APACHE_RUN_USER www-data ENV APACHE_RUN_GROUP www-data EXPOSE 80
COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf
COPY apache2-foreground /usr/local/bin/ RUN chmod +x /usr/local/bin/apache2-foreground
CMD ["apache2-foreground"]
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined DirectoryIndex index.html DirectoryIndex index.php <Directory /var/www/html> #enable the .htaccess rewrites Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all require all granted
#!/bin/bash set -e
#Note: we don't just use "apache2ctl" here because it itself is just a shell-s$ #(also, when run as "apache2ctl ", it does not use "exec", which $
: "${APACHE_CONFDIR:=/etc/apache2}" : "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}" if test -f "$APACHE_ENVVARS"; then . "$APACHE_ENVVARS" fi
#Apache gets grumpy about PID files pre-existing : "${APACHE_PID_FILE:=${APACHE_RUN_DIR:=/var/run/apache2}/apache2.pid}" rm -f "$APACHE_PID_FILE"
exec apache2 -DFOREGROUND "$@"
Content type
Image
Digest
Size
215.5 MB
Last updated
almost 8 years ago
docker pull sector04/php7.0:1