Vue Cli Github Dockerhub
This image was created to develop vue app.
You may need to mount app folder to /var/www/html.
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
The default command is npm run serve.
Content type
Image
Digest
sha256:76ef9b721…
Size
426.2 MB
Last updated
11 months ago
docker pull inglebard/vue-cli