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 @@ +<!DOCTYPE html> +<html lang="ja"> + <head> + <meta charset="UTF-8" /> + <title>ぐだぽよー</title> + </head> + <body> + ぐだぽよー + </body> +</html>