|
@@ -90,6 +90,28 @@ pnpm serve
|
|
|
pnpm build
|
|
|
```
|
|
|
|
|
|
+## Docker support
|
|
|
+
|
|
|
+1. Customize the image named `vue-pure-admin` (please note that there is a dot `.` at the end of the command below, indicating that the `Dockerfile` file in the current path is used, and the path can be specified according to the actual situation)
|
|
|
+
|
|
|
+```bash
|
|
|
+docker build -t vue-pure-admin .
|
|
|
+```
|
|
|
+
|
|
|
+2. Port mapping and start the `docker` container (`8080:80`: indicates that the `80` port is used in the container, and the port is forwarded to the `8080` port of the host; `pure-admin`: indicates a custom container name; `vue-pure-admin`: indicates the custom image name)
|
|
|
+
|
|
|
+```bash
|
|
|
+docker run -dp 8080:80 --name pure-admin vue-pure-admin
|
|
|
+```
|
|
|
+
|
|
|
+After operating the above two commands, open `http://localhost:8080` in the browser to preview
|
|
|
+
|
|
|
+Of course, you can also operate the `docker` project through the [Docker Desktop](https://www.docker.com/products/docker-desktop/) visual interface, as shown below
|
|
|
+
|
|
|
+<p align="center">
|
|
|
+ <img alt="docker" width="100%" src="https://yiming_chang.gitee.io/pure-admin-doc/img/docker/1.jpg">
|
|
|
+</p>
|
|
|
+
|
|
|
## Change Log
|
|
|
|
|
|
[CHANGELOG](./CHANGELOG.en_US.md)
|