Sign inSign up

claudiobizzotto/go-http-echo-server

By claudiobizzotto

•Updated over 6 years ago

Image
0

186

claudiobizzotto/go-http-echo-server repository overview

⁠Golang HTTP Echo Server

The dumbest HTTP server you can find. Send a request and have it echoed back to you.

⁠Usage

go run echoserver.go

Then point your browser to http://localhost:8080⁠.

The port will be set to 8080 by default. If you want to run the server on another port, pass it as a parameter:

go run echoserver.go 8090

⁠Docker

Follow the instructions below to dockerize the server.

⁠Build image
docker build -t go-http-echo-server .

If you don't want to use the default port (8080), make sure you change that in the Dockerfile before building the image.

⁠Run container
docker run -d -p 8080:8080 go-http-echo-server

Tag summary

Content type

Image

Digest

Size

107.6 MB

Last updated

over 6 years ago

docker pull claudiobizzotto/go-http-echo-server