nginx-profile-setup/kaproxy/Dockerfile

35 lines
876 B
Text
Raw Normal View History

FROM debian:bookworm-slim
EXPOSE 8080
RUN echo "deb http://deb.debian.org/debian-debug/ bookworm-debug main" >> /etc/apt/sources.list.d/debug.list
RUN echo "deb http://deb.debian.org/debian-debug/ bookworm-proposed-updates-debug main" >> /etc/apt/sources.list.d/debug.list
RUN apt update -y
RUN apt install libssl3 libssl3-dbgsym openssl openssl-dbgsym libssl-dev zlib1g-dev \
libc6-dbg gcc make mk-configure valgrind libpcre2-dev libgcrypt20-dbgsym strace \
procps --allow-downgrades -y
COPY nginx.conf /
WORKDIR /
COPY gencerts.sh /
RUN ./gencerts.sh
COPY dhparam.pem /
COPY www.example.com.crt /
COPY www.example.com.key /
COPY nginx /nginx
WORKDIR /nginx
RUN auto/configure \
--with-debug \
--with-http_ssl_module \
--with-file-aio \
--with-cc-opt="-gdwarf-4 -fno-omit-frame-pointer"
RUN make -j $(nproc --all)
RUN make install
COPY run.sh /
CMD ["/run.sh"]