first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
FROM nginx:1.13.2
LABEL maintainer="phithon <root@leavesongs.com>"

View File

@@ -0,0 +1,40 @@
FROM debian:jessie
LABEL maintainer="phithon <root@leavesongs.com>"
ENV NGINX_VERSION 1.4.2
ENV BUILD_TOOLS \
gcc \
libc-dev \
make \
g++ \
wget
RUN set -ex \
&& apt-get update \
&& apt-get install -y $BUILD_TOOLS libssl-dev \
&& rm -rf /var/lib/apt/lists/* \
&& cd /tmp/ \
&& wget -qO- http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | tar zx -C /tmp/ \
&& wget -qO- https://ftp.pcre.org/pub/pcre/pcre-8.40.tar.gz | tar zx -C /tmp/ \
&& wget -qO- http://zlib.net/zlib-1.2.11.tar.gz | tar zx -C /tmp/ \
&& cd /tmp/nginx-${NGINX_VERSION} \
&& ./configure \
--with-http_ssl_module \
--with-pcre=../pcre-8.40 \
--with-zlib=../zlib-1.2.11 \
&& make \
&& make install \
&& make clean \
&& cd / \
&& rm -rf /tmp/nginx-${NGINX_VERSION} /tmp/pcre-8.40 /tmp/zlib-1.2.11 \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_TOOLS
RUN ln -sf /dev/stdout /usr/local/nginx/logs/access.log \
&& ln -sf /dev/stderr /usr/local/nginx/logs/error.log \
&& ln -sf /usr/local/nginx/sbin/nginx /usr/sbin/nginx
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]

3
base/nginx/1/Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM nginx:1
LABEL maintainer="phithon <root@leavesongs.com>"

View File

@@ -0,0 +1,41 @@
FROM debian:stretch
LABEL maintainer="phithon <root@leavesongs.com>"
ENV NGINX_VERSION 1.11.13
ENV BUILD_TOOLS \
gcc \
libc-dev \
make \
g++ \
wget
RUN set -ex \
&& apt-get update \
&& apt-get install -y $BUILD_TOOLS \
&& rm -rf /var/lib/apt/lists/* \
&& cd /tmp/ \
&& wget -qO- http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | tar zx -C /tmp/ \
&& wget -qO- https://ftp.pcre.org/pub/pcre/pcre-8.40.tar.gz | tar zx -C /tmp/ \
&& wget -qO- http://zlib.net/zlib-1.2.11.tar.gz | tar zx -C /tmp/ \
&& wget -qO- https://github.com/openssl/openssl/archive/OpenSSL_1_0_1c.tar.gz | tar zx -C /tmp/ \
&& cd /tmp/nginx-${NGINX_VERSION} \
&& ./configure \
--with-http_ssl_module \
--with-pcre=../pcre-8.40 \
--with-zlib=../zlib-1.2.11 \
--with-openssl=../openssl-OpenSSL_1_0_1c \
&& make \
&& make install \
&& make clean \
&& cd / \
&& rm -rf /tmp/nginx-${NGINX_VERSION} /tmp/pcre-8.40 /tmp/zlib-1.2.11 /tmp/openssl-OpenSSL_1_0_1c \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_TOOLS
RUN set -ex \
&& mkdir -p /etc/ssl/nginx/ /etc/nginx/
COPY local.crt local.key /etc/ssl/nginx/
COPY nginx.conf /etc/nginx/
CMD ["/usr/local/nginx/sbin/nginx", "-c", "/etc/nginx/nginx.conf", "-g", "daemon off;"]