mcp-server-bitbucket 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dockerfile ADDED
@@ -0,0 +1,32 @@
1
+ # Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2
+ FROM node:lts-alpine
3
+ WORKDIR /app
4
+
5
+ # Copy package files and install dependencies
6
+ COPY package.json package-lock.json* ./
7
+ RUN npm ci --ignore-scripts
8
+
9
+ # Copy TypeScript configuration
10
+ COPY tsconfig.json ./
11
+
12
+ # Copy all source files
13
+ COPY src/ ./src/
14
+
15
+ # Build the TypeScript source
16
+ RUN npm run build
17
+
18
+ # Copy and set up entrypoint script
19
+ COPY docker-entrypoint.sh /usr/local/bin/
20
+ RUN chmod +x /usr/local/bin/docker-entrypoint.sh
21
+
22
+ # Create non-root user for security
23
+ RUN addgroup -g 1001 -S nodejs
24
+ RUN adduser -S bitbucket-mcp -u 1001
25
+
26
+ # Change ownership of the app directory
27
+ RUN chown -R bitbucket-mcp:nodejs /app
28
+ USER bitbucket-mcp
29
+
30
+ # Use entrypoint script for flexible configuration
31
+ ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
32
+ CMD []
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node