16 lines
564 B
Docker
16 lines
564 B
Docker
# Runtime only — binary built externally via cargo
|
|
FROM debian:bookworm-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY target/x86_64-unknown-linux-gnu/release/operator /app/operator
|
|
|
|
# The operator reads POD_NAMESPACE and OPERATOR_IMAGE_PREFIX from env.
|
|
# It connects to the in-cluster Kubernetes API via the service account token.
|
|
# All child resources are created in the operator's own namespace.
|
|
ENV OPERATOR_LOG_LEVEL=info
|
|
ENTRYPOINT ["/app/operator"]
|