fix: Adjust query-service Dockerfiles to make /root/query-service executable for non-root users (#3338)

This commit is contained in:
Nico 2023-08-16 11:20:56 +02:00 committed by GitHub
parent 22d4c53a43
commit ded2c98167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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"]

View File

@ -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"]