File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
- # TODO: Switch to UBI golang image when 1.17 is released
2
- # FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder
3
- FROM golang:1.17 AS builder
1
+ FROM registry.access.redhat.com/ubi8/go-toolset:1.16.12 AS builder
4
2
5
- WORKDIR /workspace
3
+ WORKDIR /opt/app-root/src
6
4
7
5
# Copy the dependencies which don't change frequently
8
6
COPY go.mod go.mod
@@ -17,8 +15,8 @@ COPY pkg pkg
17
15
COPY webhooks webhooks
18
16
19
17
# Build the controller
20
- RUN go build -mod=vendor -o bin/ controller main.go
18
+ RUN go build -mod=vendor -o controller main.go
21
19
22
20
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
23
- COPY --from=builder /workspace/bin /controller /usr/bin/controller
21
+ COPY --from=builder /opt/app-root/src /controller /usr/bin/controller
24
22
ENTRYPOINT ["/usr/bin/controller"]
You can’t perform that action at this time.
0 commit comments