From be093afd08fba1cc87ade98cb1ef65e8b3ac145f Mon Sep 17 00:00:00 2001 From: Jonatan Reiners Date: Thu, 2 May 2024 16:45:25 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20sample=20Dockerfile=20for=20n?= =?UTF-8?q?ginx=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a sample Dockerfile for setting up nginx server using envplate for environment variable templating. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 18209bf..3fabeae 100644 --- a/README.md +++ b/README.md @@ -76,3 +76,18 @@ NotEscaped1=\db.example.com Escaped2=\${BAR_DATABASE:-db2.example.com} NotEscaped2=\\db2.example.com ``` + +### Sample docker file + +``` +FROM nginx:latest +MAINTAINER Albert van t Hart + +ADD https://github.com/kreuzwerker/envplate/releases/download/v0.0.7/ep-linux /bin/ep +RUN chmod +x /bin/ep + +EXPOSE 80 443 + +CMD [ "/bin/ep", "-v", "/etc/nginx/*.conf", "--", "/usr/sbin/nginx", "-g", "daemon off;" ] +``` +Source: https://github.com/avthart/docker-nginx-env \ No newline at end of file