Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stefanhuber/ssi-inject-env-variables

Injecting Environment Variables with Docker into Static Webpages
https://github.com/stefanhuber/ssi-inject-env-variables

docker environment-variables example server-side-includes

Last synced: about 2 months ago
JSON representation

Injecting Environment Variables with Docker into Static Webpages

Awesome Lists containing this project

README

        

# 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](https://www.stefanhuber.at/posts/ssi-inject-env-variables).

## 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
```