Skip to content

Commit

Permalink
updated docker file and tuned monitor
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Shanley <dave@quobix.com>
  • Loading branch information
daveshanley committed Jul 23, 2023
1 parent da2bf97 commit 31dd8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-bullseye-slim as builder
FROM node:20-bookworm-slim as builder

# set up ui build
RUN mkdir -p /wt_build
Expand All @@ -11,7 +11,7 @@ WORKDIR /wt_build/ui
RUN yarn install
RUN yarn build

FROM golang:1.20-alpine
FROM golang:1.20

WORKDIR /work

Expand Down
4 changes: 1 addition & 3 deletions cmd/serve_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ func serveMonitor(wiretapConfig *shared.WiretapConfiguration) {
mux.HandleFunc("/", handleIndex)

// compress everything!
fileServer = handlers.CompressHandler(fileServer)

// handle the assets
mux.Handle("/assets/", http.StripPrefix("/assets", fileServer))
mux.Handle("/assets/", http.StripPrefix("/assets", handlers.CompressHandler(fileServer)))

pterm.Info.Println(pterm.LightMagenta(fmt.Sprintf("Monitor UI booting on port %s...", wiretapConfig.MonitorPort)))

Expand Down

0 comments on commit 31dd8ab

Please sign in to comment.