update next.js version

This commit is contained in:
Иван 2026-03-10 20:37:17 +03:00
parent 28a7e0105f
commit 29929cb242
2 changed files with 9 additions and 3 deletions

View File

@ -14,11 +14,17 @@ WORKDIR /app
RUN apk add --no-cache libc6-compat
ENV NODE_ENV=production
# Run as non-root user to limit impact of any future compromise
RUN addgroup --system --gid 1001 nodejs && \
adduser --system --uid 1001 nextjs
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package-lock.json ./
COPY --from=builder /app/package.json ./
RUN chown -R nextjs:nodejs /app
USER nextjs
EXPOSE 3000
CMD ["npm", "run", "start"]
# Run Next directly (no shell) to reduce attack surface
CMD ["node", "node_modules/next/dist/bin/next", "start"]

View File

@ -26,7 +26,7 @@
"date-fns": "^4.1.0",
"embla-carousel-react": "^8.6.0",
"lucide-react": "^0.546.0",
"next": "15.5.5",
"next": "15.5.7",
"react": "19.1.0",
"react-day-picker": "^9.11.1",
"react-dom": "19.1.0",
@ -42,7 +42,7 @@
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.5.5",
"eslint-config-next": "15.5.7",
"tailwindcss": "^4",
"turbo": "^2.6.3",
"typescript": "5.9.3"