Building a docker in Vue

You have installed a vue-cli-plugin-docker-nginx plugin and built a docker. However, you want to run the docker in a different port.Which of these code snippets would you add to your package.json script to do so?

Options
1."docker": "docker build . -t docker run -d -p <PORT>:xx vue-app"
2."docker": "docker build . -t vue-app -d -p <PORT>:xx vue-app"

3."docker": "docker build . -t vue-app && docker run -d -p <PORT>:xx vue-app"

4."docker": "docker build . -t vue-app && docker run -d -p:xx vue-app"

Related Posts

Close Bitnami banner
Bitnami