Sign inSign up

inglebard/vue-cli

By inglebard

•Updated 11 months ago

vue-cli container

Image
0

1.2K

inglebard/vue-cli repository overview

⁠Docker image inglebard/vue-cli

Vue Cli Github⁠ Dockerhub⁠

⁠Why use this image :

This image was created to develop vue app.

⁠Technical information :

⁠Softwares :
  • node
  • npm
  • vue-cli
⁠Ports :
  • 8080
⁠Volumes :

You may need to mount app folder to /var/www/html.

⁠How to use this image :

You can create a project :

docker run -it --rm -v vue_app:/var/www/html inglebard/vue-cli:latest vue create .
docker run -it --rm -v vue_app:/var/www/html inglebard/vue-cli:latest npm install

Then edit vue.config.js to have :

module.exports = {
  //...
  devServer: {
    host: '0.0.0.0'
  }
};

You can serve the project like this:

docker run -it -v vue_app:/var/www/html -p 8080:8080 inglebard/vue-cli:latest

⁠Note :

The default command is npm run serve.

Tag summary

Content type

Image

Digest

sha256:76ef9b721…

Size

426.2 MB

Last updated

11 months ago

docker pull inglebard/vue-cli