In your .bashrc, .zshrc, or similar file include aliases for the following commands:
alias vue='docker run -it --rm -v "$PWD":"$PWD" -w "$PWD" usijo/docker-vuecli vue'
Using this via docker-compose:
version: '2'
services:
web:
image: usijo/docker-vuecli
command: ["npm","run","dev"]
volumes:
- .:/root/vue-project
ports:
- "8080:8080"
Content type
Image
Digest
Size
51.6 MB
Last updated
over 9 years ago
docker pull usijo/docker-vuecli