---
title: "Comment by Gagan  Aggarwal on \"React, Vite & Production-Ready Docker\" | Hashnode"
description: "This was amazing. Never heard of using a non-root user and a custom Nginx directory for serving static SPA assets. Also, the Dockerfile is amazing having such d"
url: "https://hashnode.com/posts/react-vite-production-ready-docker/679d3057071c8b50bdee9bdf/comment/6aafa0fbefa1a846d47417e1"
---

[Discussion](https://hashnode.com/posts/react-vite-production-ready-docker/679d3057071c8b50bdee9bdf)

Comment [React, Vite & Production-Ready Docker](https://hashnode.com/posts/react-vite-production-ready-docker/679d3057071c8b50bdee9bdf)

[Gagan Aggarwal](https://hashnode.com/@funr4z0r)

[Sep 20](https://hashnode.com/posts/react-vite-production-ready-docker/679d3057071c8b50bdee9bdf/comment/6aafa0fbefa1a846d47417e1)

This was amazing. Never heard of using a non-root user and a custom Nginx directory for serving static SPA assets. Also, the Dockerfile is amazing having such detailed commands and instructions for setting up a secure Nginx server. Definitely worth a try!
