ARG IMAGE_BASE_TAG=buster-slim FROM debian:${IMAGE_BASE_TAG} ARG RESTY_VERSION="1.19.3.1" RUN apt-get update && apt-get -y upgrade \ && rm -rf /var/lib/apt/lists/* # Install all required packages RUN apt-get update && \ apt-get -y install \ wget \ curl \ unzip \ gzip \ && rm -rf /var/lib/apt/lists/* WORKDIR /tmp # Get the openresty /nginx source RUN cd /tmp #RUN curl -fSL https://openresty.org/download/openresty-${RESTY_VERSION}.tar.gz -o openresty.tar.gz \ # && tar xvf openresty.tar.gz RUN wget https://openresty.org/download/openresty-1.19.3.1.tar.gz -O openresty.tar.gz \ && tar xvf openresty.tar.gz && mv openresty-1.19.3.1 openresty RUN ls RUN wget https://github.com/kvspb/nginx-auth-ldap/archive/refs/heads/master.zip && unzip -o master.zip && rm master.zip RUN cd openresty && ./configure