File size: 672 Bytes
a81ea67 56228a1 b5fdf42 03dbf12 0aabb1f 03dbf12 56228a1 88c3d91 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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"] |