Skip to main content
Glama

YouTube Transcript DL MCP Server

by jedarden
MIT License
0
2
Dockerfile1.51 kB
# Multi-stage build for optimized production image FROM node:18-alpine AS builder # Install dumb-init for proper PID 1 handling RUN apk add --no-cache dumb-init # Create non-root user RUN addgroup -g 1001 -S nodejs RUN adduser -S nodejs -u 1001 # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ COPY tsconfig.json ./ # Install ALL dependencies including dev dependencies for building RUN npm ci && npm cache clean --force # Copy source code COPY src ./src # Build the application RUN npm run build # Production stage FROM node:18-alpine AS production # Set environment to production ENV NODE_ENV=production # Install dumb-init RUN apk add --no-cache dumb-init # Create non-root user RUN addgroup -g 1001 -S nodejs RUN adduser -S nodejs -u 1001 # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install production dependencies only RUN npm ci --only=production && npm cache clean --force # Copy built application from builder stage COPY --from=builder /app/dist ./dist # Create logs directory RUN mkdir -p logs && chown -R nodejs:nodejs logs # Change ownership to nodejs user RUN chown -R nodejs:nodejs /app # Switch to non-root user USER nodejs # Expose port EXPOSE 3000 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD node -e "console.log('healthy'); process.exit(0);" || exit 1 # Use dumb-init to handle signals properly ENTRYPOINT ["dumb-init", "--"] # Default command CMD ["node", "dist/index.js"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jedarden/yt-transcript-dl-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server