File tree Expand file tree Collapse file tree 4 files changed +5870
-5450
lines changed Expand file tree Collapse file tree 4 files changed +5870
-5450
lines changed Original file line number Diff line number Diff line change 44ARG ARCH
55
66# Build the web app.
7- FROM node:16 as web-builder
7+ FROM node:20 as web-builder
88
99WORKDIR /app
1010COPY ./web /app
11- RUN npm install
11+
12+ RUN npm config set registry http://registry.npmjs.org/
13+ RUN npm install --verbose
1214RUN npm run build
1315
1416
1517# Build the Go binary.
1618# Alpine is chosen for its small footprint
1719# compared to Ubuntu
18- FROM golang:1.20 -alpine as builder
20+ FROM golang:1.21 -alpine as builder
1921
2022# Need to redeclare ARCH to use in Go build stage
2123ARG ARCH
@@ -34,6 +36,7 @@ go mod download
3436COPY ./main.go /app/
3537COPY ./internal /app/internal
3638COPY ./version /app/version
39+ COPY ./api /app/api
3740
3841RUN CGO_ENABLED=0 GOARCH=${ARCH} go build -trimpath -ldflags "${ldflags} -extldflags '-static'" -o main
3942
Original file line number Diff line number Diff line change 11module github.com/Jont828/cluster-api-visualizer
22
3- go 1.20
3+ go 1.21
44
55require (
66 github.com/gobuffalo/flect v1.0.2
You can’t perform that action at this time.
0 commit comments