Skip to content

Commit

Permalink
Set minimum tls version to 1.3 and statically compile to avoid glibc …
Browse files Browse the repository at this point in the history
…error (#187)
  • Loading branch information
teejaded authored Aug 29, 2023
1 parent 7dacca7 commit a5c4554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /src/jainishshah17/tugger/
COPY ./ /src/jainishshah17/tugger/

# Build microservices
RUN cd cmd/tugger && go install
RUN cd cmd/tugger && CGO_ENABLED=0 go install -ldflags="-extldflags=-static"

# Runnable image
FROM gcr.io/distroless/base-debian11
Expand Down
1 change: 1 addition & 0 deletions cmd/tugger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func main() {
Addr: fmt.Sprintf(":%d", listenPort),
TLSConfig: &tls.Config{
ClientAuth: tls.NoClientCert,
MinVersion: tls.VersionTLS13,
},
}
log.Fatal(s.ListenAndServeTLS(tlsCertFile, tlsKeyFile))
Expand Down

0 comments on commit a5c4554

Please sign in to comment.