# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile FROM node:23.10.0-alpine3.21 # Create app directory WORKDIR /usr/src/app # Copy package files and config first COPY package.json yarn.lock tsconfig.json ./ # Copy source code COPY src/ ./src/ COPY .env ./ COPY patches/ ./patches/ # Install dependencies including TypeScript RUN yarn install --frozen-lockfile # Build the project (using local tsc from node_modules) RUN yarn build # Expose port for the SSE server EXPOSE 3000 # Set environment variables ENV SSE_PORT=3000 # Run the server using the correct build path CMD ["node", "build/index.js"]