Dockerfile for Deploying Vite React SPAs with Nginx
A simple Dockerfile example for building React apps with Vite and serving them using Nginx.
FROM
Let's place the nginx.conf
file at the root of the project
Let's create a Dockerfile
to build the React app with Vite and serve it using Nginx.
Let's build the Docker Image and run the container