From d7a8a2e53cb6722671de6fbdfd17794337936bc0 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Thu, 13 May 2021 10:13:00 +0000 Subject: [PATCH] init --- .gitignore | 2 ++ Dockerfile | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4572f3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +archive/* +*.tar.gz \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5c255db --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +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 \ No newline at end of file