Open your terminal, navigate to the root directory of your project (where the Dockerfile is located), and run:
docker build -t codebase-to-pdf-app .This command creates a Docker image named codebase-to-pdf-app.
Once the image has been built, start the application with:
docker run -p 5173:5173 codebase-to-pdf-app- The flag
-p 5173:5173maps port 5173 of your computer to the container, so you can access the app in your browser. - By default, Vite runs on port 5173.
Open your browser and go to:
http://localhost:5173
You should now see the app running!
- Make sure Docker is installed and running on your machine.
- If port 5173 is already in use, you can change it by modifying the run command, e.g.,
-p 8080:5173. - For troubleshooting, check Docker logs with
docker logs <container_id>.