This image has vue-cli installed and a script, named start-vue.sh, that checks if an vue app exists. If it doesn't exist, it creates it and starts the server in it.
You can use this image in a container, as below:
docker-compose.yaml
version: "3"
services:
node:
image: walkero/node-vuecli
container_name: "vue_node"
working_dir: /var/www/html
volumes:
- ./:/var/www/html
command: sh -c '/start-vue.sh my-app'
start-vue.sh
#!/bin/bash
APPNAME=$1
if [ ! -d "$APPNAME" ]; then
vue create -d $APPNAME
fi
cd $APPNAME
yarn serve
Based on https://hub.docker.com/r/wodby/node
Content type
Image
Digest
Size
70.2 MB
Last updated
over 7 years ago
docker pull walkero/node-vuecli