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,21 @@
FROM buildpack-deps:jessie-curl
COPY debian.patch /debian.patch
RUN set -ex \
&& apt-get update \
&& apt-get install --no-install-recommends -y gcc make libc6-dev patch \
&& wget -qO- http://www.acme.com/software/mini_httpd/mini_httpd-1.29.tar.gz \
| tar zx -C /usr/src --strip-components=1 \
&& cd /usr/src \
&& patch mini_httpd.c < /debian.patch \
&& make \
&& make install \
&& mkdir -p /var/www/html \
&& chown www-data:www-data /var/www/html \
&& rm -rf /usr/src/* /var/lib/apt/lists/* /debian.patch
WORKDIR /var/www/html
EXPOSE 8080
CMD ["mini_httpd", "-p", "8080", "-u", "www-data", "-h", "0.0.0.0", "-d", "/var/www/html", "-D", "-c", "**.cgi", "-l", "/dev/stdout", "-T", "utf-8"]