ARO-RP/Dockerfile.proxy

20 строки
401 B
Docker

# Uses a multi-stage container build to build the proxy
#
ARG REGISTRY
FROM ${REGISTRY}/ubi8/go-toolset:1.21.13-1 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