File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 - name : SEER_API_KEY
1717 description : API key for authenticating with the Seer server
1818 required : true
19+ - name : SEER_MCP_AUTH_TOKEN
20+ description : Bearer token for authenticating MCP HTTP transport clients (required when running the HTTP server; omit for stdio transport)
21+ required : false
1922---
2023
2124# seer-cli
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ COPY . .
1818RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /seer-cli .
1919
2020# Stage 2: Final image
21- FROM alpine:latest
21+ FROM alpine:3.21
2222
2323RUN apk add --no-cache ca-certificates
2424
Original file line number Diff line number Diff line change @@ -58,10 +58,25 @@ echo "Installing ${BIN} ${VERSION} (${OS}/${ARCH})..."
5858TMP=$( mktemp -d)
5959trap ' rm -rf "$TMP"' EXIT
6060
61+ CHECKSUMS_FILE=" ${BIN} _${VERSION_BARE} _checksums.txt"
62+ CHECKSUMS_URL=" https://github.com/${REPO} /releases/download/${VERSION} /${CHECKSUMS_FILE} "
63+
6164if command -v curl > /dev/null 2>&1 ; then
6265 curl -fsSL " $URL " -o " ${TMP} /${ARCHIVE} "
66+ curl -fsSL " $CHECKSUMS_URL " -o " ${TMP} /${CHECKSUMS_FILE} "
6367else
6468 wget -qO " ${TMP} /${ARCHIVE} " " $URL "
69+ wget -qO " ${TMP} /${CHECKSUMS_FILE} " " $CHECKSUMS_URL "
70+ fi
71+
72+ # ── Verify checksum ───────────────────────────────────────────────────────────
73+ echo " Verifying checksum..."
74+ if command -v sha256sum > /dev/null 2>&1 ; then
75+ (cd " $TMP " && grep " ${ARCHIVE} " " ${CHECKSUMS_FILE} " | sha256sum -c -)
76+ elif command -v shasum > /dev/null 2>&1 ; then
77+ (cd " $TMP " && grep " ${ARCHIVE} " " ${CHECKSUMS_FILE} " | shasum -a 256 -c -)
78+ else
79+ echo " Warning: sha256sum/shasum not found — skipping checksum verification"
6580fi
6681
6782tar -xzf " ${TMP} /${ARCHIVE} " -C " $TMP "
You can’t perform that action at this time.
0 commit comments