File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM openshift/origin-release:golang-1.10 as builder
1
+ FROM openshift/origin-release:golang-1.12 as builder
2
2
RUN yum update -y
3
3
RUN yum install -y make git
4
4
5
+ ENV GO111MODULE auto
5
6
ENV GOPATH /go
6
7
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
7
8
8
- WORKDIR /go/src/github.com/operator-framework/operator-lifecycle-manager
9
+ WORKDIR /build
9
10
10
11
# copy just enough of the git repo to parse HEAD, used to record version in OLM binaries
11
12
COPY .git/HEAD .git/HEAD
@@ -18,9 +19,8 @@ COPY pkg pkg
18
19
COPY vendor vendor
19
20
COPY cmd cmd
20
21
COPY test test
21
- COPY scripts scripts
22
- COPY deploy deploy
23
- RUN make verify-manifests
22
+ COPY go.mod go.mod
23
+ COPY go.sum go.sum
24
24
RUN make build
25
25
26
26
FROM openshift/origin-base
@@ -29,9 +29,9 @@ ADD manifests/ /manifests
29
29
LABEL io.openshift.release.operator=true
30
30
31
31
# Copy the binary to a standard location where it will run.
32
- COPY --from=builder /go/src/github.com/operator-framework/operator-lifecycle-manager /bin/olm /bin/olm
33
- COPY --from=builder /go/src/github.com/operator-framework/operator-lifecycle-manager /bin/catalog /bin/catalog
34
- COPY --from=builder /go/src/github.com/operator-framework/operator-lifecycle-manager /bin/package-server /bin/package-server
32
+ COPY --from=builder /build /bin/olm /bin/olm
33
+ COPY --from=builder /build /bin/catalog /bin/catalog
34
+ COPY --from=builder /build /bin/package-server /bin/package-server
35
35
36
36
# This image doesn't need to run as root user.
37
37
USER 1001
You can’t perform that action at this time.
0 commit comments