fix: update masonry grid sizing logic and notebook list padding
This commit is contained in:
@@ -4,6 +4,9 @@ FROM node:20-alpine
|
||||
# Install dependencies
|
||||
WORKDIR /app
|
||||
|
||||
# Install curl and wget for healthchecks
|
||||
RUN apk add --no-cache curl wget
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
@@ -28,12 +31,22 @@ USER mcp
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Expose (not needed for stdio, but useful for SSE variant)
|
||||
EXPOSE 3000
|
||||
# Expose port for SSE mode (3001)
|
||||
EXPOSE 3001
|
||||
|
||||
# Health check
|
||||
# Create startup script
|
||||
RUN printf '%s\n' '#!/bin/sh' \
|
||||
'if [ "${MCP_MODE}" = "sse" ]; then' \
|
||||
' echo "Starting MCP server in SSE mode on port ${PORT:-3001}"' \
|
||||
' exec node index-sse.js' \
|
||||
'else' \
|
||||
' echo "Starting MCP server in stdio mode"' \
|
||||
' exec node index.js' \
|
||||
'fi' > /app/start.sh && chmod +x /app/start.sh
|
||||
|
||||
# Health check - works for both modes
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD node -e "console.log('healthy')" || exit 1
|
||||
CMD if [ "${MCP_MODE}" = "sse" ]; then wget --spider -q http://localhost:${PORT:-3001}/ 2>/dev/null || exit 1; else node -e "console.log('healthy')" || exit 1; fi
|
||||
|
||||
# Start MCP server
|
||||
CMD ["node", "index.js"]
|
||||
# Start MCP server with mode selection
|
||||
CMD ["/app/start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user