Files
otel-collector/cmd/o11yotelcollector/Dockerfile
zeekay df7d6cb470 feat: rebrand signoz-otel-collector → Hanzo OTEL Collector
- Go module: github.com/SigNoz/signoz-otel-collector → github.com/hanzoai/otel-collector
- All signoz-prefixed packages → o11y-prefixed
- Docker: signoz/* → ghcr.io/hanzoai/otel-collector
- ClickHouse exporter → Hanzo Datastore
- Env vars: SIGNOZ_* → HANZO_*
- Directory renames for all processor/receiver/exporter packages
2026-03-12 00:21:24 -07:00

26 lines
753 B
Docker

# use a minimal debian image
FROM debian:bookworm-slim
# add ca-certificates in case you need them
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
# define arguments and default values
ARG TARGETOS TARGETARCH
ARG USER_UID=10001
# create a non-root user for running the collector
USER ${USER_UID}
# copy the binaries from the multi-stage build
COPY .build/${TARGETOS}-${TARGETARCH}/hanzo-otel-collector /hanzo-otel-collector
# copy the config file
COPY conf/default.yaml /etc/otel/config.yaml
# expose OTLP ports for the collector
EXPOSE 4317 4318
# run the binary as the entrypoint and pass the default config file as a flag
ENTRYPOINT [ "/hanzo-otel-collector" ]
CMD ["--config", "/etc/otel/config.yaml"]