Harden production workflows and agent admission

This commit is contained in:
Stanislav Rossovskii
2026-05-28 14:19:27 +04:00
parent a2e88b4e76
commit 37b1a1d6d6
109 changed files with 4927 additions and 894 deletions

View File

@@ -20,5 +20,9 @@ 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.json ./package.json
# PH-015: run as the prebuilt non-root `node` user shipped by the base image.
RUN chown -R node:node /app
USER node
EXPOSE 3000
STOPSIGNAL SIGTERM
CMD ["npm", "run", "start"]