mirror of
https://github.com/DepthFirstDisclosures/Nginx-Rift.git
synced 2026-05-16 11:07:44 +00:00
init
This commit is contained in:
commit
90f4b4a302
8 changed files with 393 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
FROM ubuntu:22.04
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc make libpcre2-dev libssl-dev zlib1g-dev \
|
||||
util-linux python3 curl git \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN git clone https://github.com/nginx/nginx.git /nginx-src \
|
||||
&& cd /nginx-src && git checkout 98fc3bb78
|
||||
|
||||
RUN cd /nginx-src && ./auto/configure \
|
||||
--builddir=build \
|
||||
--with-cc-opt='-g -O2 -fno-omit-frame-pointer' \
|
||||
--with-ld-opt='-Wl,-z,relro -Wl,-z,now' \
|
||||
--with-http_ssl_module --with-http_v2_module \
|
||||
&& make -j$(nproc)
|
||||
|
||||
WORKDIR /app
|
||||
COPY nginx.conf server.py entrypoint.sh ./
|
||||
RUN chmod +x entrypoint.sh && mkdir -p logs tmp
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
EXPOSE 19321
|
||||
Loading…
Add table
Add a link
Reference in a new issue