-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
30 lines (24 loc) · 1001 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
30
FROM php:7.1-fpm-alpine3.8
ENV SAML_VERSION 1.16.3
RUN set -xe \
&& apk add --no-cache openssl \
&& apk add --no-cache php7-mcrypt \
&& apk add --no-cache php7-ldap \
&& buildDeps="wget ca-certificates" \
&& apk add --no-cache $buildDeps \
&& update-ca-certificates \
&& rm -rf /var/cache/apk/* \
&& wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v${SAML_VERSION}/simplesamlphp-${SAML_VERSION}.tar.gz \
-O /tmp/simplesamlphp-${SAML_VERSION}.tar.gz --no-check-certificate \
&& tar -zxf /tmp/simplesamlphp-${SAML_VERSION}.tar.gz -C /tmp \
&& mv /tmp/simplesamlphp-${SAML_VERSION} /srv/simplesaml \
&& wget https://github.com/bander2/twit/releases/download/1.1.0/twit-linux-amd64 \
-O /usr/local/bin/twit --secure-protocol=TLSv1_2 \
&& chmod u+x /usr/local/bin/twit \
&& mkdir /lib64 \
&& ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 \
&& apk del $buildDeps
EXPOSE 9000
WORKDIR /srv/simplesaml
VOLUME ["/srv/simplesaml"]
CMD ["php-fpm"]