stefanhuber / ssi-inject-env-variables

Injecting Environment Variables with Docker into Static Webpages

Home Page:https://www.stefanhuber.at/posts/ssi-inject-env-variables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Injecting Environment Variables with Docker into Static Webpages

In this example it is demonstrated how to inject environment variables into a static website. A more detailed description is found in this blog post.

Docker Build

docker build -t ssi-example .

Docker Run

docker run --rm -it -p 9000:80 -e MY_NAME="world" -e MY_GREETING="hello" ssi-example

About

Injecting Environment Variables with Docker into Static Webpages

https://www.stefanhuber.at/posts/ssi-inject-env-variables


Languages

Language:HTML 71.8%Language:Dockerfile 28.2%