# Uses a multi-stage container build to build the proxy # ARG REGISTRY FROM ${REGISTRY}/ubi8/go-toolset:1.20.12-5 AS builder USER root ENV GOPATH=/root/go RUN mkdir -p /app WORKDIR /app COPY . /app RUN make proxy FROM ${REGISTRY}/ubi8/ubi-minimal RUN microdnf update && microdnf clean all COPY --from=builder /app/proxy /usr/local/bin/ ENTRYPOINT ["proxy"] EXPOSE 8443/tcp EXPOSE 8080/tcp USER 1000