Skip to content

Commit

Permalink
Added gmp and mcrypt modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ianblenke committed Nov 17, 2014
1 parent fc72e8d commit 2b14e38
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
FROM php:5.6-apache
MAINTAINER Ian Blenke <[email protected]>

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 [email protected]: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

0 comments on commit 2b14e38

Please sign in to comment.