forked from redhat-certification/chart-verifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (23 loc) · 769 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
29
30
31
32
33
34
#
# The golang:1.15 image is a copy of docker.io/library/golang:1.15 hosted in Quay to work around rate limits to
# Dockerhub:
#
# > docker pull golang:1.15
# > docker tag golang:1.15 quay.io/redhat-certification/golang:1.15
# > docker push quay.io/redhat-certification/golang:1.15
#
# To upgrade Go, then a new image should be pushed to Quay and updated below.
#
FROM quay.io/redhat-certification/golang:1.15 as build
WORKDIR /tmp/src
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN ./hack/get-oc.sh
RUN ./hack/get-helm.sh
RUN ./hack/build.sh
FROM registry.access.redhat.com/ubi8/ubi-minimal
COPY --from=build /tmp/src/out/chart-verifier /app/chart-verifier
COPY --from=build /usr/local/bin/* /usr/local/bin/
ENTRYPOINT ["/app/chart-verifier"]