File tree 3 files changed +7
-4
lines changed 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
2
2
WORKDIR /go/src/github.com/coreos/prometheus-operator
3
3
COPY . .
4
- RUN make operator
4
+ RUN make operator-no-deps
5
5
6
6
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
7
7
COPY --from=builder /go/src/github.com/coreos/prometheus-operator/operator /usr/bin/
Original file line number Diff line number Diff line change 1
1
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
2
2
WORKDIR /go/src/github.com/coreos/prometheus-operator
3
3
COPY . .
4
- RUN make operator
4
+ RUN make operator-no-deps
5
5
6
6
FROM registry.svc.ci.openshift.org/ocp/4.0:base
7
7
COPY --from=builder /go/src/github.com/coreos/prometheus-operator/operator /usr/bin/
Original file line number Diff line number Diff line change @@ -43,10 +43,13 @@ clean:
43
43
build : operator prometheus-config-reloader k8s-gen
44
44
45
45
.PHONY : operator
46
- operator : $(GOLANG_FILES )
46
+ operator : $(GOLANG_FILES ) operator-no-deps
47
+
48
+ .PHONY : operator-no-deps
49
+ operator-no-deps :
47
50
GOOS=linux CGO_ENABLED=0 go build \
48
51
-ldflags " -X $( GO_PKG) /pkg/version.Version=$( shell cat VERSION) " \
49
- -o $@ cmd/operator/main.go
52
+ -o operator cmd/operator/main.go
50
53
51
54
.PHONY : prometheus-config-reloader
52
55
prometheus-config-reloader :
You can’t perform that action at this time.
0 commit comments