From fefb3a8287ca6250932f3ae0aebb5f9d8df5df69 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 22 Jan 2023 21:47:12 +0900 Subject: [PATCH] create lighttpd --- lighttpd/Dockerfile | 7 +++++++ lighttpd/compose.yml | 10 ++++++++++ lighttpd/lighttpd/lighttpd.conf | 3 +++ lighttpd/srv/index.html | 10 ++++++++++ 4 files changed, 30 insertions(+) create mode 100644 lighttpd/Dockerfile create mode 100644 lighttpd/compose.yml create mode 100644 lighttpd/lighttpd/lighttpd.conf create mode 100644 lighttpd/srv/index.html diff --git a/lighttpd/Dockerfile b/lighttpd/Dockerfile new file mode 100644 index 0000000..ed0fb12 --- /dev/null +++ b/lighttpd/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine AS lighttpd +RUN apk --no-cache add lighttpd +FROM scratch +COPY --from=lighttpd /usr/sbin/lighttpd /usr/sbin/ +COPY --from=lighttpd /lib /lib +COPY --from=lighttpd /usr/lib /usr/lib +WORKDIR /var/tmp diff --git a/lighttpd/compose.yml b/lighttpd/compose.yml new file mode 100644 index 0000000..cec22ad --- /dev/null +++ b/lighttpd/compose.yml @@ -0,0 +1,10 @@ +services: + lighttpd: + image: kou029w/lighttpd + build: "." + volumes: + - "./lighttpd:/etc/lighttpd" + - "./srv:/srv" + ports: + - "8080:80" + command: lighttpd -Df /etc/lighttpd/lighttpd.conf diff --git a/lighttpd/lighttpd/lighttpd.conf b/lighttpd/lighttpd/lighttpd.conf new file mode 100644 index 0000000..1d449d7 --- /dev/null +++ b/lighttpd/lighttpd/lighttpd.conf @@ -0,0 +1,3 @@ +server.document-root = "/srv" +mimetype.assign = (".html" => "text/html") +index-file.names = ("index.html") diff --git a/lighttpd/srv/index.html b/lighttpd/srv/index.html new file mode 100644 index 0000000..4cf65f7 --- /dev/null +++ b/lighttpd/srv/index.html @@ -0,0 +1,10 @@ + + + + + ぐだぽよー + + + ぐだぽよー + +