correction nextjs user
All checks were successful
Build and Push App / build (push) Successful in 5m39s

This commit is contained in:
2026-04-19 12:56:51 +02:00
parent 270c4055dc
commit f97399e4fd
2 changed files with 12 additions and 0 deletions

View File

@@ -12,5 +12,11 @@ RUN npm run build
EXPOSE 3001
ENV PORT=3001
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
RUN chown -R nextjs:nodejs /app
USER nextjs
# On lance directement via npm (avec push de la BD si besoin, ou juste start)
CMD ["sh", "-c", "npx prisma db push --schema=prisma/schema.prisma --accept-data-loss && npm start"]