Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stefanhuber/ssi-inject-env-variables
- Owner: stefanhuber
- Created: 2023-03-16T19:19:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-16T19:40:43.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T20:36:00.939Z (3 months ago)
- Topics: docker, environment-variables, example, server-side-includes
- Language: HTML
- Homepage: https://www.stefanhuber.at/posts/ssi-inject-env-variables
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```