1 Star 0 Fork 0

Gitee 极速下载/adenot_mcp-google-search

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/adenot/mcp-google-search
克隆/下载
Dockerfile 1004 Bytes
一键复制 编辑 原始数据 按行查看 历史
Henry Mao 提交于 2025-02-02 16:39 +08:00 . Deployment: Dockerfile and Smithery config (#1)
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use an official Node.js image as a parent image
FROM node:18-alpine AS builder
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package.json package-lock.json ./
# Install dependencies
RUN npm install --ignore-scripts
# Copy the TypeScript source code
COPY src ./src
COPY tsconfig.json ./
# Build the TypeScript code
RUN npm run build
# Use a lightweight image for the final build
FROM node:18-alpine
# Set the working directory
WORKDIR /app
# Copy the build files from the builder stage
COPY --from=builder /app/build ./build
COPY package.json ./
# Install only production dependencies
RUN npm ci --omit=dev
# Expose the port on which the server will run (if required)
# EXPOSE 8080
# Define environment variables
ENV GOOGLE_API_KEY=your-api-key-here
ENV GOOGLE_SEARCH_ENGINE_ID=your-search-engine-id-here
# Run the application
ENTRYPOINT ["node", "build/index.js"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/adenot_mcp-google-search.git
git@gitee.com:mirrors/adenot_mcp-google-search.git
mirrors
adenot_mcp-google-search
adenot_mcp-google-search
main

搜索帮助