-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (21 loc) · 934 Bytes
/
Dockerfile
File metadata and controls
22 lines (21 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:10-slim as builder
RUN apt-get update && apt-get install -y build-essential wget libc6-dbg
WORKDIR /build
RUN wget https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.15.tar.gz \
&& tar xf lighttpd-1.4.15.tar.gz \
&& cd /build/lighttpd-1.4.15 \
&& CFLAGS=-g ./configure --without-bzip2 && CFLAGS=-g make && make install \
&& mkdir /www && echo "lighttpd 1.4.15 running!" > /www/index.html
COPY lighttpd.conf /usr/local/etc
WORKDIR /
COPY corpus /corpus
CMD ["/usr/local/sbin/lighttpd","-D", "-f","/usr/local/etc/lighttpd.conf"]
EXPOSE 80
FROM debian:10-slim
RUN apt-get update && apt-get install -y --no-install-recommends libc6-dbg
# Don't set workdir! corpus is relative to /
COPY corpus /corpus
COPY --from=builder /usr/local /usr/local
RUN mkdir /www && echo "lighttpd 1.4.15 running!" > /www/index.html
CMD ["/usr/local/sbin/lighttpd","-D", "-f","/usr/local/etc/lighttpd.conf"]
EXPOSE 80