signoz/pkg/query-service/Dockerfile

38 lines
874 B
Docker
Raw Normal View History

2021-01-03 18:15:44 +05:30
# use a minimal alpine image
FROM alpine:3.20.3
# Add Maintainer Info
LABEL maintainer="signoz"
# define arguments that can be passed during build time
ARG TARGETOS TARGETARCH
2021-01-03 18:15:44 +05:30
# add ca-certificates in case you need them
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
2021-01-03 18:15:44 +05:30
# set working directory
WORKDIR /root
# copy the signoz binary
COPY pkg/query-service/bin/signoz-${TARGETOS}-${TARGETARCH} /root/signoz
# copy prometheus YAML config
COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml
COPY pkg/query-service/templates /root/templates
# Make signoz executable for non-root users
RUN chmod 755 /root /root/signoz
# Copy frontend
COPY frontend/build/ /etc/signoz/web/
# Copy frontend
COPY frontend/build/ /etc/signoz/web/
2021-01-03 18:15:44 +05:30
# run the binary
ENTRYPOINT ["./signoz"]
CMD ["-config", "/root/config/prometheus.yml"]
2021-01-03 18:15:44 +05:30
EXPOSE 8080