A simple golang web server with / and /message endpoints.
257
To use:
Create a message file /tmp/hostmessages/message1.txt for the app to read message from.
Write some message in it for the webserver to display.
This /tmp/hostmessages should be mounted as a volume when you run the image.
$ docker pull coderdba/goweb1
$ docker run --name goweb1 -v /tmp/hostmessages:/tmp/messages -d --rm -p 8081:8081/tcp coderdba/goweb1:latest_or_tag
$ curl localhost:8081
$ curl localhost:8081/message
Content type
Image
Digest
Size
157.2 MB
Last updated
almost 5 years ago
docker pull coderdba/goweb1