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
18 lines
768 B
Docker
18 lines
768 B
Docker
FROM debian:jessie
|
|
|
|
LABEL maintainer="phithon <root@leavesongs.com>"
|
|
|
|
RUN set -ex \
|
|
&& apt-get update \
|
|
&& apt-get install wget make gcc -y \
|
|
&& wget -qO- https://github.com/vulhub/goahead/archive/v3.6.4.tar.gz | tar zx --strip-components 1 -C /usr/src/ \
|
|
&& cd /usr/src \
|
|
&& make && make install \
|
|
&& cp src/self.key src/self.crt /etc/goahead/ \
|
|
&& mkdir -p /var/www/goahead/cgi-bin/ \
|
|
&& apt-get purge -y --auto-remove wget make gcc \
|
|
&& cd /var/www/goahead \
|
|
&& rm -rf /usr/src/ /var/lib/apt/lists/* /tmp/index.c \
|
|
&& sed -e 's!^route uri=/cgi-bin dir=cgi-bin handler=cgi$!route uri=/cgi-bin dir=/var/www/goahead handler=cgi!' -i /etc/goahead/route.txt
|
|
|
|
CMD ["goahead", "-v", "--home", "/etc/goahead", "/var/www/goahead"] |