vue-cli-plugin-deploy-docker

1.0.1 • Public • Published

vue-cli-plugin-deploy-docker

🐳 Dockerize Your Vue.js Application \w Nginx

npm-version npm-download

Installation

Using Vue CLI

vueĀ addĀ deploy-docker

or install manually

yarnĀ addĀ -DĀ vue-cli-plugin-deploy-docker
Ā 
#Ā InvokeĀ theĀ pluginĀ 
vueĀ invokeĀ vue-cli-plugin-deploy-docker

Usage

This plugin will create a Dockerfile, .dockerignore and nginx.conf in the root of your project.

Nginx is an HTTP(s) server that will run in your docker container. It uses a configuration file to determine how to serve content/which ports to listen on/etc. See the nginx configuration documentation for an example of all of the possible configuration options.

See Deployment | Vue CLI document for more detail.

Build the container

Run the following command to build the container:

yarnĀ docker:build

Run the container

Run the following command to start the container:

Note: please make sure that you already built the container before running it

yarnĀ docker:run

License

License under MIT

Dependents (0)

Package Sidebar

Install

npm i vue-cli-plugin-deploy-docker

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

9.94 kB

Total Files

13

Last publish

Collaborators

  • andrewalex