From def169b154b9190cca9a89d3d9829ba1e620541f Mon Sep 17 00:00:00 2001 From: anchapin Date: Mon, 14 Jul 2025 13:57:35 -0400 Subject: [PATCH 1/2] feat: add Dockerfile and update start script in package.json --- Dockerfile | 23 +++++++++++++++++++++++ package.json | 1 + 2 files changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ee7348 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# syntax=docker/dockerfile:1 + +# Use official Node.js LTS image as base +FROM node:20-alpine + +# Set working directory +WORKDIR /app + +# Install pnpm globally +RUN npm install -g pnpm + +# Copy package and lock files +COPY package.json pnpm-lock.yaml ./ + +RUN pnpm install --frozen-lockfile +COPY . . +RUN pnpm run build || true + +# Expose port (customize if your server listens on a specific port) +EXPOSE 8080 + +# Start the MCP server (customize if your entrypoint is different) +CMD ["pnpm", "start"] diff --git a/package.json b/package.json index 7a58f0c..7286bae 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "scripts": { "build": "tsc && shx chmod +x dist/*.js", "prepare": "npm run build", + "start": "node dist/index.js", "watch": "tsc --watch" }, "repository": { From ca9e37954d80946c99eb39f6b3436eefbe3380f5 Mon Sep 17 00:00:00 2001 From: anchapin Date: Mon, 14 Jul 2025 14:13:47 -0400 Subject: [PATCH 2/2] fix: remove redundant prepare script from package.json --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 7286bae..558020b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ ], "scripts": { "build": "tsc && shx chmod +x dist/*.js", - "prepare": "npm run build", "start": "node dist/index.js", "watch": "tsc --watch" },