feat/TikTok-Upgrade-Graph #2

Merged
Pierre1901 merged 5 commits from feat/TikTok-Upgrade-Graph into main 2026-03-30 13:25:40 +02:00
2 changed files with 4 additions and 7 deletions
Showing only changes of commit 1a066e14df - Show all commits

View File

@@ -62,7 +62,7 @@ services:
condition: service_healthy condition: service_healthy
app: app:
condition: service_started condition: service_started
command: sh -c "sleep 30 && node worker/snapshot-worker.js" command: sh -c "sleep 30 && tsx worker/snapshot-worker.ts"
volumes: volumes:
postgres_data: postgres_data:

View File

@@ -2,21 +2,18 @@ FROM node:20-alpine
WORKDIR /app WORKDIR /app
# Copie les fichiers nécessaires
COPY package*.json ./ COPY package*.json ./
COPY prisma.config.ts ./ COPY prisma.config.ts ./
COPY prisma ./prisma/ COPY prisma ./prisma/
COPY tsconfig.json ./ COPY tsconfig.json ./
# Install deps
RUN npm ci RUN npm ci
# Génère le client Prisma dans app/generated/prisma (output défini dans schema.prisma)
RUN npx prisma generate RUN npx prisma generate
# Copie le code du worker ET le client Prisma généré
COPY worker ./worker/ COPY worker ./worker/
COPY app/generated ./app/generated/ COPY app/generated ./app/generated/
# Lance le worker avec tsx RUN npm install -g tsx
CMD ["npx", "tsx", "worker/snapshot-worker.ts"]
CMD ["tsx", "worker/snapshot-worker.ts"]