Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 511 Bytes

DOCKERHUB.md

File metadata and controls

27 lines (17 loc) · 511 Bytes

Purpose

An nginx container showing how to acquire and save environment variables at runtime (useful for Kubernetes and deployment of single page application frameworks like Angular).

Source

GitHub

Docker

Pull it.

docker pull oneoffcoder/nginx-env:latest

Run it.

docker run -it -p 80:80 oneoffcoder/nginx-env

Observe it.

docker exec -it [CONTAINER_ID] cat /usr/share/nginx/html/env.json