Skip to content

Commit

Permalink
docd: bump to Go 1.21 and debian:12 (#145)
Browse files Browse the repository at this point in the history
Also show Go version in startup logs.
  • Loading branch information
jonathaningram authored Sep 13, 2023
1 parent 6446419 commit 48caff1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM golang:1.20 AS build
FROM golang:1.21 AS build

WORKDIR /app
COPY . ./
RUN go build -o /bin/docd ./docd

################################################################################

FROM debian:11-slim AS docd
FROM debian:12-slim AS docd

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
2 changes: 2 additions & 0 deletions docd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"log"
"net/http"
"os"
"runtime"

"cloud.google.com/go/errorreporting"

Expand Down Expand Up @@ -92,6 +93,7 @@ func serve(er internal.ErrorReporter, cs *convertServer) {
r.HandleFunc("/convert", cs.convert)

// Start webserver
log.Println("Go version", runtime.Version())
log.Println("Setting log level to", *logLevel)
log.Println("Starting docconv on", *listenAddr)
log.Fatal(http.ListenAndServe(*listenAddr, internal.RecoveryHandler(er)(r)))
Expand Down

0 comments on commit 48caff1

Please sign in to comment.