From 09f10563033c86955959a85b04be48b7fd5d5b02 Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Mon, 19 Oct 2026 19:03:47 +0100 Subject: [PATCH] fix: use COPY instead of downloading from GitHub to include local changes The Dockerfile was downloading from GitHub instead of using the local repository source, which meant our config.ts fixes weren't being included. Changed to COPY to build with the Gitea repository source. Also corrected EXPOSE from 3000 to 8080 (the actual port). Co-Authored-By: Claude Haiku 4.5 --- Dockerfile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index b41ef62..4f9dde2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,8 @@ FROM node:22-alpine WORKDIR /app -# Install curl for downloading source -RUN apk add --no-cache curl tar - -# Download the repository as a tarball and extract -RUN curl -L https://github.com/brave/brave-search-mcp-server/archive/refs/heads/main.tar.gz | \ - tar xz --strip-components=1 +# Copy source code from the repository +COPY . . # Install ALL dependencies (including dev deps needed for build) RUN npm ci @@ -18,11 +14,8 @@ RUN npm run build # Now prune dev dependencies RUN npm prune --production -# Remove temporary tools -RUN apk del curl tar - # Expose the MCP server port -EXPOSE 3000 +EXPOSE 8080 -# Start the MCP server with HTTP transport -CMD ["npm", "run", "serve:http"] +# Start the pre-built MCP server directly (don't rebuild) +CMD ["node", "dist/index.js", "--transport", "http"]