Learn how to ensure the security of your self-hosted Next.js applications by following best practices for container image selection, secret management, and running as a non-root user. This guide emphasizes proactive security measures, including using a minimal runtime environment, avoiding the inclusion of a shell for production containers, and leveraging external secret managers like 1Password to keep sensitive information safe.

7m read timeFrom blog.arcjet.com
Post cover image
Table of contents
Next.js security checklistCrafting a Secure Next.js Container ImageRunning as a non-root userManaging secrets in Next.js containersNext.js Dockerfile exampleDo you even need a shell?Conclusion

Sort: