| FROM node:22-slim | |
| # Install build dependencies for native modules (better-sqlite3, etc.) | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| python3 make g++ libsecret-1-dev ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install OmniRoute globally | |
| RUN npm install -g --no-audit --no-fund omniroute@latest | |
| ENV PORT=7860 | |
| ENV HOSTNAME=0.0.0.0 | |
| ENV NODE_ENV=production | |
| # Security secrets — change INITIAL_PASSWORD after first login | |
| ENV JWT_SECRET=omniroute-jwt-secret-hf-space-change-me | |
| ENV API_KEY_SECRET=omniroute-api-key-secret-hf-space-change-me | |
| ENV INITIAL_PASSWORD=OmniRoute2026 | |
| EXPOSE 7860 | |
| CMD ["omniroute", "--port", "7860"] | |