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
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:
21
base/mini_httpd/1.29/Dockerfile
Normal file
21
base/mini_httpd/1.29/Dockerfile
Normal 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"]
|
14
base/mini_httpd/1.29/debian.patch
Normal file
14
base/mini_httpd/1.29/debian.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- mini_httpd.c 2018-11-01 13:07:56.856000000 +0000
|
||||
+++ mini_httpd.patch.c 2018-11-01 13:07:27.148000000 +0000
|
||||
@@ -98,9 +98,11 @@
|
||||
#define SIZE_T_MAX 2147483647L
|
||||
#endif
|
||||
|
||||
+/*
|
||||
#ifndef HAVE_INT64T
|
||||
typedef long long int64_t;
|
||||
#endif
|
||||
+*/
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#define timezone _timezone
|
Reference in New Issue
Block a user