ARO-RP/Dockerfile.proxy

20 строки
401 B
Docker
Исходник Обычный вид История

2023-03-15 02:29:57 +03:00
# Uses a multi-stage container build to build the proxy
#
ARG REGISTRY
FROM ${REGISTRY}/ubi8/go-toolset:1.21.13-1 AS builder
2023-03-15 02:29:57 +03:00
USER root
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
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