-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile.prow
35 lines (26 loc) · 1.05 KB
/
Dockerfile.prow
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
# Copyright Contributors to the Open Cluster Management project
# Build the manager binary
FROM registry.ci.openshift.org/stolostron/builder:go1.19-linux AS builder
WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download
# Copy the go source
COPY . .
# Build
RUN go build -o start-repo ./cmd/repo
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
RUN microdnf install tar
RUN microdnf update
LABEL org.label-schema.vendor="Red Hat" \
org.label-schema.name="multiclusterhub-repo" \
org.label-schema.description="Helm repo that serves charts for the Red Hat Advanced Cluster Management installer" \
org.label-schema.license="Red Hat Advanced Cluster Management for Kubernetes EULA"
WORKDIR /app
COPY --from=builder /workspace/start-repo .
COPY multiclusterhub/charts/ multiclusterhub/charts/
EXPOSE 3000
ENTRYPOINT /app/start-repo