fix(security): remediate Trivy HIGH findings on main image
- Bump next 16.2.2 -> 16.2.3 (GHSA-q4gf-8mx6-v5v3 RSC DoS) - pnpm overrides: minimatch>=10.2.3, picomatch>=4.0.4, tar>=7.5.11 (CVE-2026-27903/27904, 33671, 29786, 31802) - Dockerfile runner: apk upgrade --no-cache pulls patched openssl 3.5.6-r0 and zlib 1.3.2-r0 before installing wget (CVE-2026-28390, 22184) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,8 @@ ENV NODE_ENV=production \
|
||||
PORT=3000 \
|
||||
HOSTNAME=0.0.0.0
|
||||
RUN addgroup -g 1001 -S nodejs && adduser -S -u 1001 -G nodejs nextjs
|
||||
RUN apk add --no-cache wget && \
|
||||
RUN apk upgrade --no-cache && \
|
||||
apk add --no-cache wget && \
|
||||
mkdir -p /app/media && \
|
||||
chown -R nextjs:nodejs /app
|
||||
COPY --from=build --chown=nextjs:nodejs /app/public ./public
|
||||
|
||||
Reference in New Issue
Block a user