# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Node.js image with pnpm pre-installed
FROM node:18-alpine
# Create app directory
WORKDIR /app
# Copy package.json and pnpm-lock.yaml first for better caching
COPY package.json pnpm-lock.yaml ./
# Install app dependencies
RUN npm install -g pnpm && pnpm install
# Bundle app source
COPY . .
# Build the TypeScript application
RUN pnpm run build
# Expose the port the app runs on
EXPOSE 3000
# The POSTMAN_API_KEY will be provided via environment variables
ENV POSTMAN_API_KEY=${POSTMAN_API_KEY}
# Run the application
CMD ["node", "build/index.js"]