mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
create lighttpd
This commit is contained in:
parent
35ac9c5c71
commit
fefb3a8287
4 changed files with 30 additions and 0 deletions
7
lighttpd/Dockerfile
Normal file
7
lighttpd/Dockerfile
Normal 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
10
lighttpd/compose.yml
Normal 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
|
3
lighttpd/lighttpd/lighttpd.conf
Normal file
3
lighttpd/lighttpd/lighttpd.conf
Normal 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
10
lighttpd/srv/index.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ja">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>ぐだぽよー</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
ぐだぽよー
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Reference in a new issue