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:
@@ -11,5 +11,11 @@ RUN npm run build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
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
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user