Add Dockerfile

This commit is contained in:
Henry Mao
2025-04-01 03:03:17 -07:00
parent 89efaf0819
commit b6491f5310
+22
View File
@@ -0,0 +1,22 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:lts-alpine
WORKDIR /app
# Install dependencies
COPY package.json pnpm-lock.yaml ./
# Use npm install if pnpm is not available
RUN npm install --ignore-scripts
# Copy remaining source files
COPY tsconfig.json ./
COPY src ./src
# Build the project (transpiling TypeScript to JavaScript)
RUN npm run build
# Expose no ports as MCP runs via stdio; if needed, expose port here
# Set entrypoint
ENTRYPOINT ["node", "build/index.js"]