FROM node:lts-slim # Install global dependencies: omniroute, qodercli, and cline RUN npm install -g omniroute @qoder-ai/qodercli cline # Rebuild native addons against the current Node version RUN cd /usr/local/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 # Install zod inside omniroute's app directory where Turbopack can find it RUN cd /usr/local/lib/node_modules/omniroute/app && npm install zod # Install git and bash for sync script RUN apt-get update && apt-get install -y git bash && rm -rf /var/lib/apt/lists/* COPY sync.sh /sync.sh RUN chmod +x /sync.sh ENV PORT=7860 EXPOSE 7860 CMD ["/bin/bash", "-c", "/sync.sh && omniroute --port 7860"]