From ded2c981671d6521919a9b57699805cb746190b9 Mon Sep 17 00:00:00 2001 From: Nico <588438+rybnico@users.noreply.github.com> Date: Wed, 16 Aug 2023 11:20:56 +0200 Subject: [PATCH] fix: Adjust query-service Dockerfiles to make /root/query-service executable for non-root users (#3338) --- ee/query-service/Dockerfile | 3 +++ pkg/query-service/Dockerfile | 3 +++ 2 files changed, 6 insertions(+) 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"]