HUB
Sign inSign up
vuejs logo

6gosrl/vuejs

By 6gosrl

•Updated about 9 years ago

VueJs is a progressive, incrementally-adoptable JavaScript framework for building UI on the web

Image
5

500K+

6gosrl/vuejs repository overview

⁠Docker for VueJs development

The goal of this docker images is to simplify the bootstrap of VueJs development.

VueJs is a progressive, incrementally-adoptable JavaScript framework for building UI on the web, you can learn mode by visiting the official website⁠.

⁠Configurations

Nothing much to configure, the image is already built with some useful packages:

  • Cross Env⁠ Run scripts that set and use environment variables across platforms
  • Webpack⁠ A module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset
  • Browserify⁠ Use a node-style require() to organize your browser code and load modules installed by npm.
  • Gulp⁠ The streaming build system
  • Grunt⁠ The JavaScript Task Runner
  • Vue Cli⁠ A simple CLI for scaffolding Vue.js projects.
  • Web Ext⁠ A command line tool to help build, run, and test web extensions

All this packages are set as devDependencies inside the packages.json placed in home folder of Node user. It also contains packages that are commonly used with VueJs such as:

  • Vue⁠ A progressive, incrementally-adoptable JavaScript framework for building UI on the web
  • Vue Router⁠ The official router for Vue.js
  • Vuex⁠ Centralized State Management for Vue.js
  • Vue Loader⁠ Webpack loader for Vue.js components
  • RxJs⁠ The Reactive Extensions for JavaScript
  • Vue Rx⁠ RxJS integration for Vue.js

⁠How to build

Building is straight forward you can run docker build -t name-of-image . inside this folder or you can use on of the build files that we provide in scripts/build.

⁠How tu use

Once you have built the image, you need to create and run a container that shares a volume and a port. By default the image will expose the port 80, feel free to change it for you needs.

docker run --name name-of-the-container -d -p 80:80 name-of-the-image

The default user is node as suggested by the best practies⁠ and the default work directory is /home/node/app

⁠Docker Hub

This images is avaiable trought Docker Hub⁠.

Tag summary

Content type

Image

Digest

Size

21.4 MB

Last updated

about 9 years ago

docker pull 6gosrl/vuejs