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 4
4
ARG ARCH
5
5
6
6
# Build the web app.
7
- FROM node:16 as web-builder
7
+ FROM node:20 as web-builder
8
8
9
9
WORKDIR /app
10
10
COPY ./web /app
11
- RUN npm install
11
+
12
+ RUN npm config set registry http://registry.npmjs.org/
13
+ RUN npm install --verbose
12
14
RUN npm run build
13
15
14
16
15
17
# Build the Go binary.
16
18
# Alpine is chosen for its small footprint
17
19
# compared to Ubuntu
18
- FROM golang:1.20 -alpine as builder
20
+ FROM golang:1.21 -alpine as builder
19
21
20
22
# Need to redeclare ARCH to use in Go build stage
21
23
ARG ARCH
@@ -34,6 +36,7 @@ go mod download
34
36
COPY ./main.go /app/
35
37
COPY ./internal /app/internal
36
38
COPY ./version /app/version
39
+ COPY ./api /app/api
37
40
38
41
RUN CGO_ENABLED=0 GOARCH=${ARCH} go build -trimpath -ldflags "${ldflags} -extldflags '-static'" -o main
39
42
Original file line number Diff line number Diff line change 1
1
module github.com/Jont828/cluster-api-visualizer
2
2
3
- go 1.20
3
+ go 1.21
4
4
5
5
require (
6
6
github.com/gobuffalo/flect v1.0.2
You can’t perform that action at this time.
0 commit comments