correction nextjs user
All checks were successful
Build and Push App / build (push) Successful in 5m39s
All checks were successful
Build and Push App / build (push) Successful in 5m39s
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user