Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions containers/serena-mcp-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Optimized for Python, Go, and TypeScript support with minimal image size

# Stage 1: Build gopls
FROM golang:1.24-alpine AS gopls-builder
# Pin to gopls v0.17.1 which is compatible with Go 1.24
RUN go install golang.org/x/tools/gopls@v0.17.1
FROM golang:1.25-alpine AS gopls-builder
# Pin to gopls v0.21.0 which is compatible with Go 1.25
RUN go install golang.org/x/tools/gopls@v0.21.0
Comment on lines +5 to +7
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The builder stage is pinned to Go 1.25, but the final image installs golang-go from Debian without pinning a matching Go toolchain version. Since gopls shells out to the go toolchain for analysis/build operations, a mismatch here can cause unexpected behavior when analyzing modules with go 1.25.0 (see go.mod). Consider ensuring the final image provides the same Go version (e.g., copy /usr/local/go from a Go 1.25 stage or install a version-pinned Go toolchain), rather than relying on the distro package version.

Copilot uses AI. Check for mistakes.

# Stage 2: Final image
FROM python:3.11-slim
Expand Down