From af6942a2c93f26468347cf4f8d0f51ccb7cc4773 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 29 Jul 2025 14:36:38 +0100 Subject: [PATCH] Add .infra for image-building --- .infra/Dockerfile | 7 +++++++ .infra/entrypoint.sh | 5 +++++ .infra/index.html | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 .infra/Dockerfile create mode 100644 .infra/entrypoint.sh create mode 100644 .infra/index.html diff --git a/.infra/Dockerfile b/.infra/Dockerfile new file mode 100644 index 0000000..40094e9 --- /dev/null +++ b/.infra/Dockerfile @@ -0,0 +1,7 @@ +FROM nginx:1.29.0 + +COPY entrypoint.sh /custom-docker-entrypoint.sh + +COPY index.html /usr/share/nginx/html/index.html + +ENTRYPOINT ["/custom-docker-entrypoint.sh"] diff --git a/.infra/entrypoint.sh b/.infra/entrypoint.sh new file mode 100644 index 0000000..0921f7c --- /dev/null +++ b/.infra/entrypoint.sh @@ -0,0 +1,5 @@ +!#/bin/sh + +envsubst < /usr/share/nginx/html/index.html.tmpl > /usr/share/nginx/html/index.html + +/docker-entrypoint.sh nginx -g daemon off diff --git a/.infra/index.html b/.infra/index.html new file mode 100644 index 0000000..cac9dd5 --- /dev/null +++ b/.infra/index.html @@ -0,0 +1,8 @@ + +
+