Files
openrouter-mcp-multimodal/Dockerfile

37 lines
755 B
Docker

FROM node:18-alpine
WORKDIR /app
# Install dependencies for sharp
RUN apk add --no-cache \
g++ \
make \
python3
# Configure npm to handle potential certificate issues
RUN npm config set strict-ssl false
RUN npm config set registry https://registry.npmjs.org/
# Copy package files
COPY package*.json ./
# Install dependencies with development environment for building
ENV NODE_ENV=development
RUN npm install --no-optional
# Copy source code
COPY . .
# Build TypeScript code
RUN npm run build
# Switch to production for runtime
ENV NODE_ENV=production
# The API key should be passed at runtime
# ENV OPENROUTER_API_KEY=your-api-key-here
# ENV OPENROUTER_DEFAULT_MODEL=your-default-model
# Run the server
CMD ["node", "dist/index.js"]