Coder Social home page Coder Social logo

socheatsok78 / vue-cli-plugin-deploy-docker Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 80 KB

๐Ÿณ Dockerize Your Vue.js Application \w Nginx

License: MIT License

JavaScript 92.56% Dockerfile 7.44%
vue vue-cli docker nginx deployment vue-cli-plugin

vue-cli-plugin-deploy-docker's Introduction

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

vue-cli-plugin-deploy-docker's People

Contributors

socheatsok78 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

soramitsukhmer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.