-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (35 loc) · 1023 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
31
32
33
34
35
36
37
38
39
40
41
42
43
# docker build -t simplesamlphp .
FROM alpine:3.15
LABEL maintainer="[email protected]"
LABEL description="SimpleSAMLphp application on Alpine based image with apache2 and php7."
# Setup apache and php
RUN apk --no-cache \
add apache2 \
curl \
php7-apache2 \
php7-bcmath \
php7-bz2 \
php7-calendar \
php7-ctype \
php7-curl \
php7-dom \
php7-json \
php7-mbstring \
php7-openssl \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-phar \
php7-session \
php7-xml \
php7-xmlrpc \
php7-zlib \
&& mkdir /run/apache2 \
&& mkdir -p /opt/utils \
&& mkdir /htdocs
EXPOSE 80
COPY setup_apache.sh /opt/
RUN cd /htdocs && wget --no-check-certificate https://simplesamlphp.org/download\?latest && tar xvzf download\?latest && mv simplesamlphp-* simplesamlphp
RUN chmod +x /opt/setup_apache.sh && /opt/setup_apache.sh && rm /opt/setup_apache.sh
COPY 000-default.conf /etc/apache2/conf.d/sso.conf
ENTRYPOINT ["httpd","-D","FOREGROUND"]