feat: add Dockerfile for mcp-kubernetes server
This commit is contained in:
26
apps/ollama-mcp/mcp-kubernetes/Dockerfile
Normal file
26
apps/ollama-mcp/mcp-kubernetes/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
LABEL maintainer="Vladimiras Levinas"
|
||||
LABEL description="MCP Kubernetes Server for Ollama integration"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json ./
|
||||
RUN npm install --production && npm cache clean --force
|
||||
|
||||
# Copy application
|
||||
COPY index.js ./
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
||||
CMD wget --quiet --tries=1 --spider http://localhost:3000/health || exit 1
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Run as non-root user
|
||||
USER node
|
||||
|
||||
# Start server
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user