diff --git a/.infra/Dockerfile b/.infra/Dockerfile index 5f95ecb..08d8f53 100644 --- a/.infra/Dockerfile +++ b/.infra/Dockerfile @@ -4,6 +4,6 @@ COPY entrypoint.sh /custom-docker-entrypoint.sh COPY index.html /usr/share/nginx/html/index.html -RUN ["chmod", "+x", "/custom-docker-entrypoint.sh"] +RUN ["chmod", "a+x", "/custom-docker-entrypoint.sh"] ENTRYPOINT ["/custom-docker-entrypoint.sh"] diff --git a/.infra/entrypoint.sh b/.infra/entrypoint.sh index 0921f7c..26e6d6c 100644 --- a/.infra/entrypoint.sh +++ b/.infra/entrypoint.sh @@ -1,5 +1,5 @@ -!#/bin/sh +#!/bin/sh envsubst < /usr/share/nginx/html/index.html.tmpl > /usr/share/nginx/html/index.html -/docker-entrypoint.sh nginx -g daemon off +/docker-entrypoint.sh nginx -g "daemon off;"