forked from solazs/docker-ssp-aa-php-fpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (33 loc) · 1.45 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
FROM php:7.3.12-fpm-buster
LABEL MAINTAINER Péter TÓTH <tothp@sztaki.hu>
# Install some dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libicu-dev \
libmemcached-dev \
zlib1g-dev \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ARG SIMPLESAMLPHP_VERSION=1.18.2
# Download and extract simplesamlphp with aa and hexaa modules
ADD https://github.com/simplesamlphp/simplesamlphp/releases/download/v$SIMPLESAMLPHP_VERSION/simplesamlphp-$SIMPLESAMLPHP_VERSION.tar.gz /opt/simplesamlphp.tar.gz
ADD https://github.com/NIIF/simplesamlphp-module-aa/archive/master.tar.gz /opt/aa.tar.gz
ADD https://github.com/NIIF/simplesamlphp-module-hexaa/archive/master.tar.gz /opt/hexaa.tar.gz
RUN cd /opt \
&& tar xzf simplesamlphp.tar.gz \
&& mv simplesamlphp-* simplesamlphp \
&& cd simplesamlphp/modules \
&& tar xzf /opt/aa.tar.gz \
&& mv simplesamlphp-module-aa-* aa \
&& tar xzf /opt/hexaa.tar.gz \
&& mv simplesamlphp-module-hexaa-* hexaa \
&& rm /opt/aa.tar.gz /opt/hexaa.tar.gz /opt/simplesamlphp.tar.gz
COPY authsources.php /opt/simplesamlphp/config/
RUN cd /opt/simplesamlphp \
&& touch modules/aa/enable \
&& cp modules/aa/config-templates/module_aa.php config/module_aa.php \
&& chown -R www-data log
COPY boot.sh /usr/local/bin/
WORKDIR /opt/simplesamlphp
CMD ["/usr/local/bin/boot.sh"]