add docker installation

This commit is contained in:
liangping 2023-02-25 11:31:21 +08:00
parent 004bde2b1a
commit c722db1c4e
2 changed files with 21 additions and 4 deletions

7
docker.sh Executable file
View File

@ -0,0 +1,7 @@
# chmod 755 docker.sh
yarn --ignore-engines add
yarn --ignore-engines build
docker build -t "ping.pub/dashboard" .
# then you can run "docker run -d -p 8080:80 ping.pub/dashboard"

View File

@ -1,16 +1,26 @@
# Prerequisite
1. Node, https://nodejs.org
2. Yarn, https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable
# Installation:
1. Running with yarn
```
yarn && yarn serve
```sh
yarn --ignore-engines && yarn serve
```
2. Building for web servers, like nginx, apache
```
yarn && yarn build
```sh
yarn --ignore-engines && yarn build
cp -r ./dist/* <ROOT_OF_WEB_SERVER>
```
3. Running with docker
```sh
./docker.sh
docker run -d -p 8088:80 ping.pub/dashboard
```
# Enable LCD for Ping.pub (do this on the config for your chain)
1. Set `enable = true` in `./config/app.toml`