Skip to content
Snippets Groups Projects
Verified Commit 693d54e2 authored by Marcel Behrmann's avatar Marcel Behrmann
Browse files

PHP 7 Image

parent ee343556
No related branches found
No related tags found
No related merge requests found
FROM php:5.6-apache
FROM php:7.0-apache
ADD root/ /
RUN chmod 777 /tmp && chmod +t /tmp
......
Based on https://github.com/moodlehq/moodle-php-apache/ and changed to my needs.
\ No newline at end of file
......@@ -8,10 +8,11 @@ BUILD_PACKAGES="gettext libcurl4-openssl-dev libpq-dev libmysqlclient-dev liblda
libxml2-dev libicu-dev libfreetype6-dev libjpeg62-turbo-dev libmemcached-dev \
zlib1g-dev libpng12-dev unixodbc-dev"
LIBS="libaio1 libcurl3 libgss3 libicu52 libmysqlclient18 libpq5 libmemcached11 libmemcachedutil2 libldap-2.4-2 libxml2 libxslt1.1 unixodbc"
LIBS="locales libaio1 libcurl3 libgss3 libicu52 libmysqlclient18 libpq5 libmemcached11 libmemcachedutil2 libldap-2.4-2 libxml2 libxslt1.1 unixodbc libmcrypt-dev"
apt-get update
apt-get install -y --no-install-recommends $BUILD_PACKAGES $LIBS unzip ghostscript locales apt-transport-https
echo 'Generating locales..'
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
echo 'en_AU.UTF-8 UTF-8' >> /etc/locale.gen
......@@ -34,22 +35,6 @@ docker-php-ext-install -j$(nproc) gd
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/
docker-php-ext-install -j$(nproc) ldap
pecl install solr memcache redis mongodb igbinary apcu-4.0.11 memcached-2.2.0
docker-php-ext-enable solr memcache memcached redis mongodb apcu igbinary
echo 'apc.enable_cli = On' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini
echo "Downloading freedts files"
curl ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.33.tar.gz -o /tmp/freetds-1.00.33.tar.gz
echo "Building mssql extension"
cd /tmp && tar -xvf freetds-1.00.33.tar.gz && cd freetds-1.00.33 \
&& ./configure --with-unixodbc=/usr --sysconfdir=/etc/freetds --enable-sybase-compat \
&& make -j$(nproc) \
&& make install
docker-php-ext-install -j$(nproc) mssql
# Keep our image size down..
pecl clear-cache
apt-get remove --purge -y $BUILD_PACKAGES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment