-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
30 lines (21 loc) · 910 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM php:5.6-apache
MAINTAINER Ian Blenke <[email protected]>
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
WORKDIR /var/www/html
RUN cp -r config-templates/* config/
RUN cp -r metadata-templates/* metadata/
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