diff --git a/admin-compliance/Dockerfile b/admin-compliance/Dockerfile index 61494a6..b98962a 100644 --- a/admin-compliance/Dockerfile +++ b/admin-compliance/Dockerfile @@ -37,8 +37,8 @@ WORKDIR /app ENV NODE_ENV=production # Create non-root user -RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs +RUN addgroup -S -g 1001 nodejs +RUN adduser -S -u 1001 -G nodejs nextjs # Copy built assets COPY --from=builder /app/public ./public diff --git a/developer-portal/Dockerfile b/developer-portal/Dockerfile index 3dd000e..21c0326 100644 --- a/developer-portal/Dockerfile +++ b/developer-portal/Dockerfile @@ -27,8 +27,8 @@ WORKDIR /app ENV NODE_ENV=production # Create non-root user -RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs +RUN addgroup -S -g 1001 nodejs +RUN adduser -S -u 1001 -G nodejs nextjs # Copy built assets COPY --from=builder /app/public ./public