Megan Dsouza 47d9cbda53
Adding sample for running typescript MCP server on Agentcore Runtime (#194)
* Adding Sample for Running typescript MCP server on Agentcore Runtime

* Adding an mcp client and minor fixes
2025-08-14 13:42:27 -04:00

25 lines
441 B
Docker

# Stage 1: Build the application
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
npm install typescript -g
COPY . .
RUN npm run build
# Stage 2: Create the production image
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/package.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
EXPOSE 8000
CMD ["node", "dist/index.js"]