Skip to content

Commit 81452f3

Browse files
authored
PSS-5430: capv-static-ip (#36)
1 parent 3bfb268 commit 81452f3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.19 as builder
2+
FROM golang:1.20.2 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests
@@ -18,8 +18,10 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager
1818
# Use distroless as minimal base image to package the manager binary
1919
# Refer to https://github.com/GoogleContainerTools/distroless for more details
2020
#FROM gcr.io/distroless/static:latest
21-
#FROM ubuntu
2221
FROM alpine:3.17
22+
RUN addgroup -S spectro
23+
RUN adduser -S -D -h / spectro spectro
24+
USER spectro
2325
WORKDIR /
2426
COPY --from=builder /workspace/manager .
2527
ENTRYPOINT ["/manager"]

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/spectrocloud/cluster-api-provider-vsphere-static-ip
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/ghodss/yaml v1.0.0

0 commit comments

Comments
 (0)