diff --git a/Dockerfile b/Dockerfile index f867e89..9981588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,30 @@ FROM php:5.6-apache +MAINTAINER Ian Blenke -WORKDIR /var/www/html +env VERSION 1.13.2 + +RUN curl https://simplesamlphp.org/res/downloads/simplesamlphp-$VERSION.tar.gz | tar xvzf - --strip-components 1 -C /var/www/html -RUN git clone git clone git@github.com:simplesamlphp/simplesamlphp.git simplesamlphp +WORKDIR /var/www/html RUN cp -r config-templates/* config/ RUN cp -r metadata-templates/* metadata/ -RUN php composer.phar install -#COPY config/php.ini /usr/local/lib/ +VOLUME /var/www/html/config +VOLUME /var/www/html/metadata + +# Install the gmp and mcrypt extensions +RUN apt-get update -y +RUN apt-get install -y libgmp-dev re2c libmhash-dev libmcrypt-dev file +RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/local/include/ +RUN docker-php-ext-configure gmp +RUN docker-php-ext-install gmp +RUN docker-php-ext-configure mcrypt +RUN docker-php-ext-install mcrypt + +RUN echo extension=gmp.so > $PHP_INI_DIR/conf.d/gmp.ini +RUN echo extension=mcrypt.so > $PHP_INI_DIR/conf.d/mcrypt.ini + +RUN curl -sS https://getcomposer.org/installer | php +RUN php composer.phar install