-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (26 loc) · 1.23 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
# Dugnaden is using legacy features, so keeping on an old
# PHP version as of now. Note that this Docker version is
# no longer maintained.
FROM php:5.6-apache
ENV SIMPLESAMLPHP_VERSION=1.18.3
ENV SIMPLESAMLPHP_SHA256=c6cacf821ae689de6547092c5d0c854e787bfcda716096b1ecf39ad3b3882500
RUN set -eux; \
# PHP extensions.
docker-php-ext-install -j$(nproc) mysql; \
\
# Install SimpleSAMLphp.
# See https://simplesamlphp.org/docs/stable/simplesamlphp-install
mkdir /var/simplesamlphp; \
cd /var/simplesamlphp; \
curl -fSL "https://github.com/simplesamlphp/simplesamlphp/releases/download/v$SIMPLESAMLPHP_VERSION/simplesamlphp-$SIMPLESAMLPHP_VERSION.tar.gz" \
-o simplesamlphp.tar.gz; \
echo "$SIMPLESAMLPHP_SHA256 *simplesamlphp.tar.gz" | sha256sum -c -; \
tar --strip-components=1 -zxf simplesamlphp.tar.gz; \
rm simplesamlphp.tar.gz; \
echo "require('config.override.php');" >>config/config.php
COPY simplesamlphp/config.override.php /var/simplesamlphp/config/
COPY simplesamlphp/authsources.php /var/simplesamlphp/config/
COPY simplesamlphp/saml20-idp-remote.php /var/simplesamlphp/metadata/
COPY dugnaden /var/www/dugnaden/
COPY apache-site.conf /etc/apache2/sites-enabled/000-default.conf
EXPOSE 80