1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00

create lighttpd

This commit is contained in:
Nebel 2023-01-22 21:47:12 +09:00
parent 35ac9c5c71
commit fefb3a8287
4 changed files with 30 additions and 0 deletions

7
lighttpd/Dockerfile Normal file
View file

@ -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

10
lighttpd/compose.yml Normal file
View file

@ -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

View file

@ -0,0 +1,3 @@
server.document-root = "/srv"
mimetype.assign = (".html" => "text/html")
index-file.names = ("index.html")

10
lighttpd/srv/index.html Normal file
View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>ぐだぽよー</title>
</head>
<body>
ぐだぽよー
</body>
</html>