spb/trouve-ka Public
Trouve-KA — moteur de recherche web indépendant, Québec-first. Crawler distribué, index OpenSearch, ranking bilingue, galerie d'images. En prod : www.trouve-ka.com
Python 76.8%
TypeScript 15.7%
SQL 3.9%
Shell 1.4%
CSS 1.3%
Dockerfile 0.7%
1# Trouve-KA — image web Next.js2# Author: Simon-Pierre Boucher3# Contact: contact@spboucher.ai45FROM node:22-alpine AS builder6WORKDIR /repo7RUN corepack enable8COPY package.json pnpm-workspace.yaml ./9COPY apps/web/package.json apps/web/10# sharp et unrs-resolver ont des scripts de build napi légitimes requis par Next11RUN pnpm install --frozen-lockfile=false --dangerously-allow-all-builds12COPY apps/web apps/web13# Les rewrites Next.js sont compilés au build : l'URL interne de l'API doit être fixée ici14ARG API_URL=http://api:808015ENV API_URL=${API_URL}16RUN pnpm --filter @trouveka/web build1718FROM node:22-alpine19WORKDIR /repo20RUN corepack enable21ENV NODE_ENV=production22COPY --from=builder /repo/package.json /repo/pnpm-workspace.yaml ./23COPY --from=builder /repo/node_modules ./node_modules24COPY --from=builder /repo/apps/web ./apps/web25EXPOSE 300026CMD ["pnpm", "--filter", "@trouveka/web", "start"]27