mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-15 16:56:24 +00:00
Afaiu the spec is unclear whether to quote this or not. In this case here is certainly not requires and works fine without. Additionally, there is some tooling which does not treat quotes values correctly and generates image links like `quay.io/prometheus/golang-builder:\"1.23\"-base`. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
19 lines
424 B
Docker
19 lines
424 B
Docker
ARG ARCH=amd64
|
|
ARG OS=linux
|
|
ARG GOLANG_BUILDER=1.23
|
|
FROM quay.io/prometheus/golang-builder:${GOLANG_BUILDER}-base as builder
|
|
WORKDIR /workspace
|
|
|
|
# Copy source files
|
|
COPY . .
|
|
|
|
# Build
|
|
RUN make prometheus-config-reloader
|
|
|
|
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
|
|
|
COPY --from=builder workspace/prometheus-config-reloader /bin/prometheus-config-reloader
|
|
|
|
USER nobody
|
|
|
|
ENTRYPOINT ["/bin/prometheus-config-reloader"]
|