This commit is contained in:
2021-05-13 10:13:00 +00:00
commit d7a8a2e53c
2 changed files with 32 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
archive/*
*.tar.gz

30
Dockerfile Normal file
View File

@@ -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