Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/socheatsok78/vue-cli-plugin-deploy-docker
🐳 Dockerize Your Vue.js Application \w Nginx
https://github.com/socheatsok78/vue-cli-plugin-deploy-docker
deployment docker nginx vue vue-cli vue-cli-plugin
Last synced: about 8 hours ago
JSON representation
🐳 Dockerize Your Vue.js Application \w Nginx
- Host: GitHub
- URL: https://github.com/socheatsok78/vue-cli-plugin-deploy-docker
- Owner: socheatsok78
- License: mit
- Created: 2020-06-05T02:36:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T06:36:07.000Z (over 2 years ago)
- Last Synced: 2024-09-20T06:38:32.630Z (8 days ago)
- Topics: deployment, docker, nginx, vue, vue-cli, vue-cli-plugin
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# vue-cli-plugin-deploy-docker
> 🐳 Dockerize Your Vue.js Application \w Nginx
[![npm-version](https://img.shields.io/npm/v/vue-cli-plugin-deploy-docker/latest)][npm-url]
[![npm-download](https://img.shields.io/npm/dm/vue-cli-plugin-deploy-docker)][npm-url]# Installation
Using Vue CLI
```sh
vue add deploy-docker
```or install manually
```sh
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](https://www.nginx.com/resources/wiki/start/topics/examples/full/) for an example of all of the possible configuration options.
See [Deployment | Vue CLI document](https://cli.vuejs.org/guide/deployment.html#docker-nginx) for more detail.
### Build the container
Run the following command to build the container:
```sh
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
```sh
yarn docker:run
```## License
License under [MIT](LICENSE)
[npm-url]: https://www.npmjs.com/package/vue-cli-plugin-deploy-docker