tpmjs/templates/railway-executor/Dockerfile
Ajax Davis ffc6ddcdbb feat(executors): add Railway executor template and documentation
- Add Railway executor template with one-click deploy support
- Create Railway documentation page at /docs/executors/railway
- Update main executors page with Railway as official recommendation
- Add Railway to platform comparison table with new columns
- Update inter-page navigation for Railway → Unsandbox → Vercel flow
- Update FAQ to recommend Railway for most use cases

Railway executor features:
- Zero-dependency Node.js HTTP server
- Docker support via included Dockerfile
- Health check endpoint at /health
- Tool execution at /execute-tool
- API key authentication support
- Auto-restart on failure via railway.json
2026-02-03 22:19:41 +10:00

22 lines
422 B
Docker

FROM node:20-slim
# Install npm for tool installation during execution
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy executor files
COPY package.json index.js ./
# Create temp directory for tool executions
RUN mkdir -p /tmp
# Set environment
ENV NODE_ENV=production
ENV PORT=3000
EXPOSE 3000
CMD ["node", "index.js"]