FROM rhel8/go-toolset:1.12.8 AS builder
WORKDIR /opt/app-root/src/go/src/knative.dev/serving
COPY . .
RUN go build -o /tmp/networking-istio ./cmd/networking/istio

FROM ubi8:8-released
COPY --from=builder /tmp/networking-istio /ko-app/networking-istio

LABEL \
      com.redhat.component="openshift-serverless-1-tech-preview-serving-networking-istio-rhel8-container" \
      name="openshift-serverless-1-tech-preview/serving-networking-istio-rhel8" \
      version="0.8.1" \
      summary="Red Hat OpenShift Serverless 1 Serving Networking Istio" \
      maintainer="wvanwinc@redhat.com" \
      description="Red Hat OpenShift Serverless 1 Serving Networking Istio" \
      io.k8s.display-name="Red Hat OpenShift Serverless 1 Serving Networking Istio"

ENTRYPOINT ["/ko-app/networking-istio"]
