Sign inSign up

mmdotdev/http-hello-world

By mmdotdev

•Updated over 2 years ago

A hello world http server written in golang with some middlewares from Alex Edwards book Let's Go

Image
0

2.4K

mmdotdev/http-hello-world repository overview

This image contains a simple Golang HTTP server using Gorrila Mux and Alice middleware for chaning http handlers. It implements custom INFO/ERROR logging for incoming requests.

It implements the first examples from Alex Edwards' Let's Go ebook: https://lets-go.alexedwards.net/⁠

The Dockerfile of this image is simply

FROM golang:alpine

RUN mkdir /app
ADD . /app/
WORKDIR /app

RUN go build -o hello-world cmd/web/*.go

EXPOSE 80

ENTRYPOINT [ "/app/hello-world"]

Tag summary

Content type

Image

Digest

sha256:5c9cc1085…

Size

93.8 MB

Last updated

over 2 years ago

docker pull mmdotdev/http-hello-world