Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 518 Bytes

File metadata and controls

28 lines (18 loc) · 518 Bytes

goserver

A basic HTTP server written in Go. Originally, part of the Boot.dev Learning Docker course, it is being elevated as part of the Boot.dev Learning HTTP Servers in Go course.

build

$ go build

build container image

$ docker build . --tag [TAG]

run

$ GOSERVER_ROOT="./public" GOSERVER_PORT="8080" goserver

run in a container

$ docker run --detach --publish="8080:8080" --volume="./public:/var/run/goserver/public" --name local-goserver [TAG|IMAGE ID]