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