forked from ianblenke/docker-simplesamlphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (47 loc) · 1.42 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM php:8.2-apache
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV VERSION=2.0.7
WORKDIR /var/www/html
RUN apt-get update && \
apt-get -y --no-install-recommends install \
wget \
git \
re2c \
file \
unzip \
zlib1g-dev \
libicu-dev \
libmcrypt-dev \
libmhash-dev \
libonig-dev \
libpng-dev \
&& \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
RUN docker-php-ext-install -j5 \
bcmath \
gd \
intl \
mbstring \
mysqli \
pdo \
pdo_mysql \
&& \
pecl install \
mcrypt \
redis \
&& \
docker-php-ext-enable \
mcrypt \
redis
RUN wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v$VERSION/simplesamlphp-$VERSION.tar.gz && \
tar xvzf simplesamlphp-$VERSION.tar.gz --strip-components 1 -C /var/www/html
RUN cp config/config.php.dist config/config.php && \
cp config/authsources.php.dist config/authsources.php && \
cp metadata/saml20-idp-hosted.php.dist metadata/saml20-idp-hosted.php && \
cp metadata/saml20-idp-remote.php.dist metadata/saml20-idp-remote.php && \
cp metadata/saml20-sp-remote.php.dist metadata/saml20-sp-remote.php
VOLUME /var/www/html/config
VOLUME /var/www/html/metadata
RUN curl -sS https://getcomposer.org/installer | php
RUN php composer.phar install