Skip to main content
Glama
rachana-tf
by rachana-tf
Dockerfile1.13 kB
# Stage 1: Dependencies FROM node:20-alpine AS deps WORKDIR /app # Copy package files COPY package.json package-lock.json* ./ # Install all dependencies (including dev for build) RUN npm ci --legacy-peer-deps # Stage 2: Builder FROM node:20-alpine AS builder WORKDIR /app # Copy dependencies from deps stage COPY --from=deps /app/node_modules ./node_modules COPY . . # Build the application RUN npm run build # Stage 3: Runner FROM node:20-alpine AS runner WORKDIR /app ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 # Create non-root user for security RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs # Copy necessary files from builder COPY --from=builder /app/public ./public COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static # Copy OpenAPI spec files COPY --from=builder /app/openapi1.json ./ COPY --from=builder /app/openapi2.json ./ COPY --from=builder /app/openapi.json ./ # Set correct permissions RUN chown -R nextjs:nodejs /app USER nextjs EXPOSE 3000 ENV PORT=3000 ENV HOSTNAME="0.0.0.0" CMD ["node", "server.js"]

Latest Blog Posts

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/rachana-tf/mcp-poc-app'

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