Alpine base image updated with node, npm, @vue/cli for local development of vuejs applications.
217
This dockerfile was created for developers who want to try vuejs or want to develop vue.js applications without installing @vue/cli on their pcs or laptops.
It has already installed: nodejs, npm, git and @vue/cli.
Create a folder github in the folder where you want to save your projects.
Run with mounting folder:
docker run -v ${PWD}/github:/github --workdir /github --name vuejs-devpc -it imhotepp/vuejs-devpc:latest
The above command will start the vuejs-devpc container and attach the local folder github to it. It will also set the current directory to github. That will become your current folder for all Vue.js applications.
Once the installation was finished and the docker run .... command executed all that is needed to start or continue development is to :
vuejs-devepc and thenAfter the container starts just attach from visual studio code Remode - Container extension and start development
Assuming the container started and you are connected to it using the Remote - Container extension, open a termina from Visual Studio Code and run the following commands:
vue create my-app
cd my-app && yarn serve
http://localhost:8080 and the Vuejs app will become visible.Any updates you'll do inside the container from Visual Studio Code will become immediately available in the browser.
@imhotepp
Content type
Image
Digest
Size
149.8 MB
Last updated
almost 6 years ago
docker pull imhotepp/vuejs-devpc