fix: use COPY instead of downloading from GitHub to include local changes
Build and Push Docker Image / build (push) Successful in 46s
Build and Push Docker Image / build (push) Successful in 46s
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
58118ee576
commit
09f1056303
1 file changed
+5
-12
+5
-12
@@ -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"]
|
||||
Reference in new issue
Block a user