Skip to content

stefanhuber/ssi-inject-env-variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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