diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bf80b54 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ + +FROM oven/bun:1.2-alpine + +WORKDIR /app + +COPY package.json bun.lock ./ + +RUN bun install --production + +COPY . . + +RUN bun run build + +ARG PORT=3000 + +ENV PORT=${PORT} + +EXPOSE ${PORT} + +CMD [ "bun", "run", "start:http" ] \ No newline at end of file diff --git a/package.json b/package.json index ffb1e97..28b3ccb 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,10 @@ "version:major": "npm version major", "release": "npm publish", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", - "changelog:latest": "conventional-changelog -p angular -r 1 > RELEASE_NOTES.md" + "changelog:latest": "conventional-changelog -p angular -r 1 > RELEASE_NOTES.md", + "docker:build": "docker build -t typescript-mcp-server-template .", + "docker:run": "docker run --name typescript-mcp-server-template -p 3000:3000 --env-file .env typescript-mcp-server-template", + "docker:stop": "docker stop typescript-mcp-server-template" }, "repository": { "type": "git", @@ -59,20 +62,21 @@ }, "homepage": "https://github.com/mcpdotdirect/template-mcp-server#readme", "devDependencies": { + "@biomejs/biome": "^1.9.4", "@types/bun": "latest", - "@types/cors": "^2.8.17", - "@types/node": "^20.17.24", + "@types/cors": "^2.8.19", + "@types/node": "^20.19.0", "conventional-changelog-cli": "^5.0.0" }, "peerDependencies": { - "@valibot/to-json-schema": "^1.0.0", - "effect": "^3.14.4", - "typescript": "^5.8.2" + "@valibot/to-json-schema": "^1.3.0", + "effect": "^3.16.5", + "typescript": "^5.8.3" }, "dependencies": { "cors": "^2.8.5", - "fastmcp": "^1.21.0", - "zod": "^3.24.2" + "fastmcp": "^1.27.7", + "zod": "^3.25.56" }, "engines": { "node": ">=18.0.0"