-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathDockerfile
42 lines (36 loc) · 965 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
FROM debian:wheezy
MAINTAINER Henrik Sachse <[email protected]>
ENV NGINX_VERSION v1.7.10
RUN apt-get update \
&& apt-get install -y \
ca-certificates \
git \
gcc \
make \
libpcre3-dev \
zlib1g-dev \
libldap2-dev \
libssl-dev
# See http://wiki.nginx.org/InstallOptions
RUN mkdir /var/log/nginx \
&& mkdir /etc/nginx \
&& cd ~ \
&& git clone https://github.com/kvspb/nginx-auth-ldap.git \
&& git clone https://github.com/nginx/nginx.git \
&& cd nginx \
&& git checkout tags/${NGINX_VERSION} \
&& ./configure \
--add-module=/root/nginx-auth-ldap \
--with-http_ssl_module \
--with-debug \
--conf-path=/etc/nginx/nginx.conf \
--sbin-path=/usr/sbin/nginx \
--pid-path=/var/log/nginx/nginx.pid \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
&& make install \
&& cd .. \
&& rm -rf nginx-auth-ldap \
&& rm -rf nginx
EXPOSE 80 443
CMD ["/usr/sbin/nginx", "-g", "daemon off;"]