refactor: move public to docker dir
Diff
docker/alpine/Dockerfile | 2 +-
docker/public/404.html | 9 +++++++++
docker/public/50x.html | 9 +++++++++
docker/public/assets/favicon.ico | Bin 0 -> 23229 bytes
docker/public/assets/main.css | 15 +++++++++++++++
docker/public/assets/main.js | 1 +
docker/public/index.html | 15 +++++++++++++++
docker/scratch/Dockerfile | 2 +-
public/404.html | 9 ---------
public/50x.html | 9 ---------
public/assets/favicon.ico | Bin 23229 -> 0 bytes
public/assets/main.css | 15 ---------------
public/assets/main.js | 1 -
public/index.html | 15 ---------------
sample.env | 2 +-
15 files changed, 52 insertions(+), 52 deletions(-)
@@ -16,7 +16,7 @@ RUN set -ex; \
chmod +x /usr/local/bin/static-web-server
COPY ./docker/alpine/entrypoint.sh /
COPY ./public /public
COPY ./docker/public /public
EXPOSE 80
VOLUME ["/public"]
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>404 Content was not found</title>
</head>
<body>
<center><h1>404 Content was not found</h1></center>
</body>
</html>
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>50x Service Unavailable</title>
</head>
<body>
<center><h1>50x Service Unavailable</h1></center>
</body>
</html>
Binary files /dev/null and b/docker/public/assets/favicon.ico differ
@@ -0,0 +1,15 @@
body {
font-family: sans-serif;
color: black;
text-align: center;
font-size: 1.2rem;
}
h1 a {
text-decoration: none;
color: black;
}
a {
color: #0366d6;
}
@@ -0,0 +1 @@
(() => console.log("Static Web Server running!"))()
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<title>Static Web Server</title>
<link rel="stylesheet" href="/assets/main.css">
<link rel="shortcut icon" href="/assets/favicon.ico">
</head>
<body>
<h1>Static Web Server</h1>
<p>A blazing fast static files-serving web server powered by Rust.</p>
<p><a href="https://github.com/joseluisq/static-web-server/" target="_blank">View on GitHub</a></p>
<script src="/assets/main.js"></script>
</body>
</html>
@@ -12,7 +12,7 @@ LABEL version="${SERVER_VERSION}" \
maintainer="Jose Quintana <joseluisq.net>"
COPY --from=latest /usr/local/bin/static-web-server /
COPY ./public /public
COPY ./docker/public /public
EXPOSE 80
VOLUME ["/public"]
@@ -1,9 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>404 Content was not found</title>
</head>
<body>
<center><h1>404 Content was not found</h1></center>
</body>
</html>
@@ -1,9 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>50x Service Unavailable</title>
</head>
<body>
<center><h1>50x Service Unavailable</h1></center>
</body>
</html>
Binary files a/public/assets/favicon.ico and /dev/null differ
@@ -1,15 +0,0 @@
body {
font-family: sans-serif;
color: black;
text-align: center;
font-size: 1.2rem;
}
h1 a {
text-decoration: none;
color: black;
}
a {
color: #0366d6;
}
@@ -1 +0,0 @@
(() => console.log("Static Web Server running!"))()
@@ -1,15 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<title>Static Web Server</title>
<link rel="stylesheet" href="/assets/main.css">
<link rel="shortcut icon" href="/assets/favicon.ico">
</head>
<body>
<h1>Static Web Server</h1>
<p>A blazing fast static files-serving web server powered by Rust.</p>
<p><a href="https://github.com/joseluisq/static-web-server/" target="_blank">View on GitHub</a></p>
<script src="/assets/main.js"></script>
</body>
</html>
@@ -3,7 +3,7 @@ E_ARGS = "--port=8787"
SERVER_LOG_LEVEL = "trace"
SERVER_ROOT = "public"
SERVER_ROOT = "docker/public"
SERVER_COMPRESSION = true
SERVER_DIRECTORY_LISTING = true