olmesm / environment-test-image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Environment Test Image

Useful for testing if environment variables are being correctly passed through to the running container.

Requires

Running

# Build the image and tag as "test-image"
docker build -t test-image .

# Run the image
docker run --rm -it -p 3000:3000 test-image:latest

# Run the image with TEST_MESSAGE set
docker run --rm -it -p 3000:3000 -e TEST_MESSAGE="Working" test-image:latest

About


Languages

Language:JavaScript 57.6%Language:Shell 36.1%Language:Dockerfile 6.3%