Let’s create a website using the Vue framework and learn how to serve it in a Docker container using nginx. We are going to use the Vue CLI to generate a starter Vue app.

We will name this app vue-nginx-docker.

npx @vue/cli create vue-nginx-docker

For this tutorial I’ll be using yarn, so if you want to follow along exactly be sure to select “yarn” when generating the application. It’s totally fine to select npm as well; you will just need to adjust some of the Docker commands accordingly.

#vue #docker #nginx #vuejs #javascript

How to Serve a Vue App with NGINX in Docker
10.20 GEEK