Deploy VibeKit Proxy to production environments on AWS, GCP, and other platforms
FROM node:18-alpine WORKDIR /app RUN npm install -g @vibe-kit/proxy EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:8080/health || exit 1 CMD ["npx", "@vibe-kit/proxy", "start"]
FROM node:18-alpine AS builder WORKDIR /app RUN npm install -g @vibe-kit/proxy FROM node:18-alpine AS runtime RUN addgroup -g 1001 -S nodejs && \ adduser -S vibekit -u 1001 WORKDIR /app COPY --from=builder /usr/local/lib/node_modules/@vibe-kit/proxy /usr/local/lib/node_modules/@vibe-kit/proxy RUN ln -s /usr/local/lib/node_modules/@vibe-kit/proxy/src/cli.js /usr/local/bin/vibekit-proxy USER vibekit EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:8080/health || exit 1 CMD ["npx", "@vibe-kit/proxy", "start"]
# docker-compose.yml version: '3.8' services: vibekit-proxy: build: . ports: - "8080:8080" environment: - NODE_ENV=development healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s volumes: - ./logs:/app/logs
# Install and run locally npm install -g @vibe-kit/proxy npx @vibe-kit/proxy start --port 8080
# Production environment variables NODE_ENV=production PORT=8080 VIBEKIT_PROXY_TARGET_URL=https://api.anthropic.com
/health
{ "status": "healthy", "uptime": 3600, "timestamp": "2025-01-15T10:30:00.000Z", "requestCount": 1234 }
# Check proxy status npx @vibe-kit/proxy status # View container logs docker logs vibekit-proxy-container