setup.sh (413B)
1 #!/bin/bash 2 3 # Set up a Vue application in the current directory 4 5 if [ -z "$1" ]; then 6 echo "Please give name of application" 7 exit 8 fi 9 10 11 docker run -it \ 12 --name vue-$1 \ 13 --env VUE_APP=$1 \ 14 --env DOCKER_USER=$UID \ 15 -v $PWD:/vue node:alpine /bin/sh \ 16 -C /vue/generate.sh 17 18 docker rm -f vue-$1 19 20 # Inspired by: 21 # https://daten-und-bass.io/blog/getting-started-with-vue-cli-on-docker/