7cccf39c9cfa6c6a740ff4329363f1aad26cdf08 — HokieGeek a month ago eab7777 v1.4.2
A couple of tweaks
2 files changed, 5 insertions(+), 5 deletions(-)

M Dockerfile
M cmd/biologistd/main.go
M Dockerfile => Dockerfile +4 -4
@@ 1,6 1,6 @@ ### Build the code
  FROM golang:1.12-alpine
- ENV GO111MODULE=on GOOS=linux GOARCH=amd64
+ ENV CGO_ENABLED=0 GO111MODULE=on GOOS=linux GOARCH=amd64
  RUN apk add --update git
  WORKDIR /go/src/git.sr.ht/~hokiegeek/biologist
  COPY . .


@@ 9,6 9,6 @@ ### Package it up
  FROM alpine
  EXPOSE 80 443
- COPY --from=0 /go/bin/biologistd /app/
- ONBUILD ENTRYPOINT ["/app/biologistd"]
- ENTRYPOINT ["/app/biologistd"]
+ COPY --from=0 /go/bin/biologistd /
+ ONBUILD ENTRYPOINT ["/biologistd"]
+ ENTRYPOINT ["/biologistd"]

M cmd/biologistd/main.go => cmd/biologistd/main.go +1 -1
@@ 335,7 335,7 @@ methodsOk := handlers.AllowedMethods([]string{"GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS"})
  
  	log.Printf("Started server on port %s\n", port)
- 	http.ListenAndServe(fmt.Sprintf(":%s", port), handlers.CORS(originsOk, headersOk, methodsOk, exposedOk)(mux))
+ 	log.Fatal(http.ListenAndServe(fmt.Sprintf(":%s", port), handlers.CORS(originsOk, headersOk, methodsOk, exposedOk)(mux)))
  }
  
  // vim: set foldmethod=marker: