Add .infra for image-building
This commit is contained in:
7
.infra/Dockerfile
Normal file
7
.infra/Dockerfile
Normal 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
5
.infra/entrypoint.sh
Normal 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
8
.infra/index.html
Normal 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>
|
Reference in New Issue
Block a user