mirror of
https://github.com/awslabs/amazon-bedrock-agentcore-samples.git
synced 2025-09-08 20:50:46 +00:00
* Adding Sample for Running typescript MCP server on Agentcore Runtime * Adding an mcp client and minor fixes
25 lines
441 B
Docker
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"] |