Add .infra for image-building

This commit is contained in:
3wc
2025-07-29 14:36:38 +01:00
parent d6b025c7bd
commit af6942a2c9
3 changed files with 20 additions and 0 deletions

7
.infra/Dockerfile Normal file
View File

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

5
.infra/entrypoint.sh Normal file
View File

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

8
.infra/index.html Normal file
View File

@ -0,0 +1,8 @@
<html>
<head>
<title>Docker Debugging Disco Challenge ${CHALLENGE}</title>
</head>
<body>
<h1>Far out! Challenge ${CHALLENGE} complete 🕺</h1>
</body>
</html>