forked from redhat-developer/service-binding-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.rhel
43 lines (32 loc) · 1.05 KB
/
Dockerfile.rhel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# On CI, use
# FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.13 AS builder
FROM openshift/origin-release:golang-1.13 AS builder
ENV LANG=en_US.utf8
ENV GIT_COMMITTER_NAME devtools
ENV GIT_COMMITTER_EMAIL [email protected]
LABEL com.redhat.delivery.appregistry=true
WORKDIR /go/src/github.com/redhat-developer/service-binding-operator
# Copy only relevant things (instead of all) to speed-up the build.
COPY assets assets
COPY build build
COPY cmd cmd
COPY deploy deploy
COPY hack hack
COPY pkg pkg
COPY test test
COPY vendor vendor
COPY go.mod .
COPY go.sum .
COPY LICENSE .
COPY Makefile .
COPY tools.go .
ARG VERBOSE=2
RUN make build
FROM registry.access.redhat.com/ubi8/ubi-minimal
LABEL com.redhat.delivery.appregistry=true
LABEL maintainer "Devtools <[email protected]>"
LABEL author "Shoubhik Bose <[email protected]>"
ENV LANG=en_US.utf8
COPY --from=builder /go/src/github.com/redhat-developer/service-binding-operator/out/operator /usr/local/bin/service-binding-operator
USER 10001
ENTRYPOINT [ "/usr/local/bin/service-binding-operator" ]