These dockerfiles will build container images which allow you to run Vue CLI or Quasar CLI to scaffold new projects in the hosting filesystem.
The images will not host a development server or build the actual application.
These dockerfiles are modifications of an example found in the article A step-by-step guide to develop and deploy Vue apps with docker, part one.
In order for us to be able to write to the hosting filesystem while inside the container, we create a user when the image is built based on our current session's user by passing the appropriate build arguments.
docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t vue_cli - < ./setup-vuejs.Dockerfile
docker run -v <local-folder>/:/vue-setup -it vue_cli
docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t quasar_cli - < ./setup-quasarjs.Dockerfile
docker run -v <local-folder>/:/quasar-setup -it quasar_cli
Once inside either container, run vue create <app_name>
or quasar create <app_name>
to start scaffolding your application.
-
VueJS
-
QuasarJS
-
Working with VueJS and containers: