REFACTOR: Update telemetry deployment docs and README for new Docker flow (#7250)

* fix(telemetry): make server build reproducible with proper context and deps

* Update telemetry/server/go.mod: go version

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* telemetry/server: optimize Dockerfile (organize cache deps, copy proto); run as non-root

* telemetry: update deployment docs for new Docker build context

* telemetry: clarify Docker build/run docs and improve Dockerfile caching

- DEPLOYMENT.md: specify docker build must run from repo root; provide full docker run example with flags/port mapping
- README.md: remove fragile 'cd ..'; keep instruction to run build from repo root
- Dockerfile: remove unnecessary pre-copy before 'go mod download' to improve cache utilization

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Mohamed Yassin Jammeli
2025-09-18 22:10:01 +01:00
committed by GitHub
parent bb3ebac729
commit 273720ffc6
3 changed files with 65 additions and 19 deletions

View File

@@ -3,10 +3,6 @@ FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
COPY telemetry/server/go.mod telemetry/server/go.sum ./telemetry/server/
COPY telemetry/proto/ ./telemetry/proto/
WORKDIR /app/telemetry/server
RUN go mod download
WORKDIR /app