forked from RyanCardin15/AzureDevOps-MCP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 692 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (20 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:lts-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies (ignoring scripts to skip potential issues with prepare)
RUN npm install --ignore-scripts
# Copy all source files
COPY . .
# Build the project
RUN npm run build
# Expose port if required (here assuming port 3000, adjust if needed)
EXPOSE 3000
# Set environment variables
ENV MCP_MODE=true
# Logs are silent by default
# To enable logs, set ENABLE_LOGS=true when running the container
# Start the server directly without npm to avoid extra output
CMD ["node", "dist/index.js"]