forked from nginxinc/docker-nginx
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
29 lines (19 loc) · 847 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
FROM debian:jessie
MAINTAINER Cristian Lucchesi "[email protected]"
ENV NGINX_VERSION 1.8.0-1~jessie
COPY debian/jessie/nginx_${NGINX_VERSION}_amd64.deb .
RUN mkdir /var/log/shibboleth/ && mkdir /var/run/shibboleth/ && \
apt-get update && \
apt-get install -y adduser libpcre3 libxml2 libssl1.0.0 \
supervisor shibboleth-sp2-utils && \
dpkg -i nginx_${NGINX_VERSION}_amd64.deb && \
rm -rf /var/lib/apt/lists/* && \
chown -R _shibd:_shibd /var/log/shibboleth /var/run/shibboleth/
COPY supervisor-shib-deps.conf /etc/supervisor/conf.d/
COPY start-shibd.sh /
RUN chmod +x /start-shibd.sh
#supervisor needs nginx starting in Foreground
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
VOLUME ["/var/cache/nginx"]
EXPOSE 80 443
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]