diff --git a/ee/query-service/Dockerfile b/ee/query-service/Dockerfile index cfdee0cb6d..4c9d135b4f 100644 --- a/ee/query-service/Dockerfile +++ b/ee/query-service/Dockerfile @@ -39,6 +39,9 @@ COPY --from=builder /go/src/github.com/signoz/signoz/ee/query-service/bin/query- # copy prometheus YAML config COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml +# Make query-service executable for non-root users +RUN chmod 755 /root /root/query-service + # run the binary ENTRYPOINT ["./query-service"] diff --git a/pkg/query-service/Dockerfile b/pkg/query-service/Dockerfile index 2d05e02133..de9f708405 100644 --- a/pkg/query-service/Dockerfile +++ b/pkg/query-service/Dockerfile @@ -44,6 +44,9 @@ COPY --from=builder /go/src/github.com/signoz/signoz/pkg/query-service/bin/query # copy prometheus YAML config COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml +# Make query-service executable for non-root users +RUN chmod 755 /root /root/query-service + # run the binary ENTRYPOINT ["./query-service"]