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 @@ + + + Docker Debugging Disco – Challenge ${CHALLENGE} + + +

Far out! Challenge ${CHALLENGE} complete 🕺

+ +