ldap lua compiled
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -47,6 +47,7 @@ ARG RESTY_CONFIG_OPTIONS="\
|
||||
--with-stream \
|
||||
--with-stream_ssl_module \
|
||||
--with-threads \
|
||||
--add-module=/tmp/nginx-auth-ldap-master \
|
||||
"
|
||||
WORKDIR /tmp
|
||||
# Get the openresty /nginx source
|
||||
@@ -61,16 +62,28 @@ RUN wget https://github.com/kvspb/nginx-auth-ldap/archive/refs/heads/master.zip
|
||||
RUN apt-get update && \
|
||||
apt-get install -y libpcre3-dev \
|
||||
libssl-dev zlib1g-dev libxslt-dev \
|
||||
libgd-dev libgeoip-dev \
|
||||
libgd-dev libgeoip-dev libldap2-dev\
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN cd openresty && \
|
||||
./configure ${RESTY_CONFIG_OPTIONS} \
|
||||
&& make && make install
|
||||
RUN ln -sf /dev/stdout /usr/local/openresty/nginx/logs/access.log \
|
||||
&& ln -sf /dev/stderr /usr/local/openresty/nginx/logs/error.log
|
||||
&& ln -sf /dev/stderr /usr/local/openresty/nginx/logs/error.log \
|
||||
&& mkdir -p /var/run/openresty
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y procps \
|
||||
apt-get install -y procps luarocks \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
|
||||
#RUN apt-get install liblua5.3-dev
|
||||
|
||||
RUN luarocks install --tree lua_modules luaposix && \
|
||||
luarocks install --tree lua_modules etlua && \
|
||||
luarocks install --tree lua_modules luafilesystem && \\
|
||||
luarocks install lua-resty-auto-ssl
|
||||
|
||||
RUN mkdir /etc/resty-auto-ssl \\
|
||||
&& chown www-data /etc/resty-auto-ssl
|
||||
|
||||
CMD ["/usr/local/openresty/bin/openresty", "-g" ,"daemon off;"];
|
||||
Reference in New Issue
Block a user