2022-10-06 20:13:30 +05:30
|
|
|
# use a minimal alpine image
|
2024-11-17 21:56:15 +05:30
|
|
|
FROM alpine:3.20.3
|
2022-10-06 20:13:30 +05:30
|
|
|
|
|
|
|
|
# Add Maintainer Info
|
|
|
|
|
LABEL maintainer="signoz"
|
|
|
|
|
|
2023-10-07 21:23:53 +05:45
|
|
|
# define arguments that can be passed during build time
|
|
|
|
|
ARG TARGETOS TARGETARCH
|
|
|
|
|
|
2022-10-06 20:13:30 +05:30
|
|
|
# add ca-certificates in case you need them
|
|
|
|
|
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
|
|
# set working directory
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
2023-10-07 21:23:53 +05:45
|
|
|
# copy the query-service binary
|
2023-10-08 00:44:39 +05:45
|
|
|
COPY ee/query-service/bin/query-service-${TARGETOS}-${TARGETARCH} /root/query-service
|
2022-10-06 20:13:30 +05:30
|
|
|
|
|
|
|
|
# copy prometheus YAML config
|
2023-10-08 00:44:39 +05:45
|
|
|
COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml
|
2023-12-22 14:55:30 +05:30
|
|
|
COPY pkg/query-service/templates /root/templates
|
2022-10-06 20:13:30 +05:30
|
|
|
|
2023-08-16 11:20:56 +02:00
|
|
|
# Make query-service executable for non-root users
|
|
|
|
|
RUN chmod 755 /root /root/query-service
|
|
|
|
|
|
2024-12-23 16:44:48 +05:30
|
|
|
# Copy frontend
|
|
|
|
|
COPY frontend/build/ /etc/signoz/web/
|
|
|
|
|
|
2022-10-06 20:13:30 +05:30
|
|
|
# run the binary
|
|
|
|
|
ENTRYPOINT ["./query-service"]
|
|
|
|
|
|
2023-10-07 21:23:53 +05:45
|
|
|
CMD ["-config", "/root/config/prometheus.yml"]
|
2022-10-06 20:13:30 +05:30
|
|
|
|
|
|
|
|
EXPOSE 8080
|