Initial commit

This commit is contained in:
Vincent Batts 2018-08-08 09:49:18 -04:00
commit b79c22b1ef
2 changed files with 23 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM golang
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
EXPOSE 8080
CMD ["app"]

15
main.go Normal file
View File

@ -0,0 +1,15 @@
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Batts in the Belfry")
})
log.Fatal(http.ListenAndServe(":8080", nil))
}