Skip to content

Commit 207ad83

Browse files
authored
Merge branch 'findyourmagic:master' into master
2 parents af96748 + 5433f39 commit 207ad83

File tree

5 files changed

+57
-0
lines changed

5 files changed

+57
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM docker.io/node:lts-alpine3.15
2+
3+
RUN mkdir -p /opt/dber
4+
COPY . /opt/dber
5+
WORKDIR /opt/dber
6+
RUN chmod +x start.sh
7+
RUN npm install
8+
RUN npm run build
9+
10+
ENTRYPOINT ["/bin/sh","/opt/dber/start.sh"]

README-CN.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,26 @@ yarn dev
4848

4949
使用浏览器打开 [http://localhost:3000](http://localhost:3000) 查看结果.
5050

51+
在生产模式下运行:
52+
53+
```bash
54+
55+
```bash
56+
npm run build && npm run start
57+
```
58+
59+
导出静态页面:
60+
61+
```bash
62+
npm run gen
63+
```
64+
65+
## 使用docker构建
66+
```bash
67+
docker-compose up -d
68+
```
69+
使用浏览器打开 [http://localhost:3000](http://localhost:3000) 查看结果.
70+
5171
## 受到以下作品启发
5272

5373
[dbdiagram](https://dbdiagram.io/)

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,24 @@ yarn dev
4848

4949
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
5050

51+
Run in the production mode:
52+
53+
```bash
54+
npm run build && npm run start
55+
```
56+
57+
Export static pages:
58+
59+
```bash
60+
npm run gen
61+
```
62+
63+
## Build & Startup with docker
64+
```bash
65+
docker-compose up -d
66+
```
67+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
68+
5169
## Inspired by
5270

5371
[dbdiagram](https://dbdiagram.io/)

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3'
2+
services:
3+
dber:
4+
image: dber:latest
5+
container_name: dber
6+
build: .
7+
ports:
8+
- "3000:3000"

start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run start

0 commit comments

Comments
 (0)