Skip to content

Commit ab54c3f

Browse files
authored
Merge pull request #51 from Jont828/go-v1.21
Bump go to v1.21 and API to Dockerfile
2 parents 33f553c + 03bac72 commit ab54c3f

File tree

4 files changed

+5870
-5450
lines changed

4 files changed

+5870
-5450
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
ARG ARCH
55

66
# Build the web app.
7-
FROM node:16 as web-builder
7+
FROM node:20 as web-builder
88

99
WORKDIR /app
1010
COPY ./web /app
11-
RUN npm install
11+
12+
RUN npm config set registry http://registry.npmjs.org/
13+
RUN npm install --verbose
1214
RUN 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
2123
ARG ARCH
@@ -34,6 +36,7 @@ go mod download
3436
COPY ./main.go /app/
3537
COPY ./internal /app/internal
3638
COPY ./version /app/version
39+
COPY ./api /app/api
3740

3841
RUN CGO_ENABLED=0 GOARCH=${ARCH} go build -trimpath -ldflags "${ldflags} -extldflags '-static'" -o main
3942

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Jont828/cluster-api-visualizer
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/gobuffalo/flect v1.0.2

0 commit comments

Comments
 (0)