forked from redhat-certification/chart-verifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (24 loc) · 802 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
35
36
#
# The golang:1.15 image is a copy of docker.io/library/golang:1.17 hosted in Quay to work around rate limits to
# Dockerhub:
#
# > docker pull golang:1.17.2
# > docker tag golang:1.17.2 quay.io/redhat-certification/golang:1.17.2
# > docker push quay.io/redhat-certification/golang:1.17.2
#
# To upgrade Go, then a new image should be pushed to Quay and updated below.
#
FROM quay.io/redhat-certification/golang:1.17.2 as build
WORKDIR /tmp/src
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o ./out/chart-verifier main.go
FROM registry.access.redhat.com/ubi8/ubi-minimal
COPY --from=build /tmp/src/out/chart-verifier /app/chart-verifier
COPY ./config /app/config
COPY cmd/release /app/releases
WORKDIR /app
ENV PATH "$PATH:/app"
ENTRYPOINT ["/app/chart-verifier"]