You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> vue-cli-plugin that adds a minimal docker deployment using a nginx server to serve your static files
4
+
5
+
## Installation
6
+
7
+
```
8
+
vue add vue-cli-plygin-docker-nginx
9
+
```
10
+
11
+
This will automatically add all the files needed to your existing vue-cli project
12
+
13
+
### Build and run local docker container
14
+
15
+
```
16
+
npm run docker
17
+
```
18
+
19
+
This will build a docker container and run it on a free port. Please make sure to have [docker](https://docs.docker.com/install/) installed and running on your machine.
20
+
21
+
### Tweak nginx config
22
+
23
+
With the default settings nginx listens on port `80` and is configured to route all requests back to `index.html`. This way you can safely use `history`-mode in your `vue-router`. These settings can be changed in `default.conf` in you projects root.
0 commit comments