Skip to content

awgreene/hello-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Hello Go

This repo creates a simple Golang server that responds to requests on localhost:8000/env with the messageHello, ${WORLD}!, where ${WORLD} is the WORLD environment variable.

Building the Dockerfile.

$ docker build -t hello-go .

Running the image.

$ docker run -d -p 8000:8000 -e "WORLD=Go Programmer" --rm --name hello-go hello-go

Executing a cURL command from within the container.

$ docker exec hello-go curl -s localhost:8000/env
Hello, Go Programmer! // Expected output

Killing the container.

$ docker kill hello-go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published