forked from shipwright-io/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (18 loc) · 784 Bytes
/
Dockerfile
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
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/build-operator
# Copy only relevant things (instead of all) to speed-up the build.
COPY . .
ARG VERBOSE=2
RUN make clean && 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/build-operator/build/_output/bin/build-operator /usr/local/bin/build-operator
USER 10001
ENTRYPOINT [ "/usr/local/bin/build-operator" ]