2023-03-15 02:29:57 +03:00
|
|
|
# Uses a multi-stage container build to build the proxy
|
|
|
|
#
|
2022-06-24 21:40:13 +03:00
|
|
|
ARG REGISTRY
|
2024-09-25 01:01:53 +03:00
|
|
|
FROM ${REGISTRY}/ubi8/go-toolset:1.21.13-1 AS builder
|
2023-03-15 02:29:57 +03:00
|
|
|
USER root
|
2024-01-25 05:22:06 +03:00
|
|
|
ENV GOPATH=/root/go
|
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-05-07 01:50:26 +03:00
|
|
|
COPY . /app
|
2023-03-15 02:49:10 +03:00
|
|
|
RUN make proxy
|
2023-03-15 02:29:57 +03:00
|
|
|
|
2022-06-24 21:40:13 +03:00
|
|
|
FROM ${REGISTRY}/ubi8/ubi-minimal
|
2020-01-11 01:53:38 +03:00
|
|
|
RUN microdnf update && microdnf clean all
|
2024-05-07 01:50:26 +03:00
|
|
|
COPY --from=builder /app/proxy /usr/local/bin/
|
2019-12-29 17:49:38 +03:00
|
|
|
ENTRYPOINT ["proxy"]
|
2019-11-18 09:55:32 +03:00
|
|
|
EXPOSE 8443/tcp
|
2024-05-07 01:50:26 +03:00
|
|
|
EXPOSE 8080/tcp
|
2019-11-18 09:24:26 +03:00
|
|
|
USER 1000
|