Added content for simple static webpage example
This commit is contained in:
parent
1b43a2b17b
commit
23c69e940e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
caddy
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM buildpack-deps:stable-curl as builder
|
||||
|
||||
RUN mkdir /tmp/build &&\
|
||||
cd /tmp/build &&\
|
||||
wget -qO caddy 'https://caddyserver.com/api/download?os=linux&arch=amd64' &&\
|
||||
chmod +x caddy &&\
|
||||
mkdir www
|
||||
|
||||
COPY . /tmp/build/
|
||||
|
||||
FROM gcr.io/distroless/static
|
||||
|
||||
COPY --from=builder /tmp/build /
|
||||
|
||||
WORKDIR /www
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/caddy", "run", "--config", "/caddy.json"]
|
36
caddy.json
Normal file
36
caddy.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
|
||||
"admin": {
|
||||
"disabled": true
|
||||
},
|
||||
"apps": {
|
||||
"http": {
|
||||
"servers": {
|
||||
"": {
|
||||
"listen": [":8080"],
|
||||
"automatic_https": {
|
||||
"disable": true,
|
||||
"disable_redirects": false
|
||||
},
|
||||
"routes": [
|
||||
{
|
||||
"match": [
|
||||
{
|
||||
"path": [
|
||||
"/*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"handle": [
|
||||
{
|
||||
"handler": "file_server",
|
||||
"root": "./www"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
www/ek_logo.png
Normal file
BIN
www/ek_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 89 KiB |
32
www/index.html
Normal file
32
www/index.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Everything Kubernetes static Web content example</TITLE>
|
||||
<STYLE type="text/css">
|
||||
<!--
|
||||
body {
|
||||
min-height: 100vh;
|
||||
background: #000000 url("/ek_logo.png") center center no-repeat fixed;
|
||||
background-size: 50%;
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
p {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
color: #ffffff;
|
||||
opacity: 1;
|
||||
text-align: center;
|
||||
}
|
||||
-->
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<p>Everything Kubernetes - Static Web Page Example</p>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
Loading…
Reference in New Issue
Block a user