Update Grafana to v13, add version notes

This commit is contained in:
yeasy
2026-04-25 15:50:13 +00:00
parent 515ba9f64a
commit 1e9cdeea3f
55 changed files with 220 additions and 70 deletions
+3
View File
@@ -82,6 +82,7 @@ RUN pwd # 输出 /app
```docker
## 构建阶段
## 建议使用 node:20 或 node: 等具体版本标签,避免使用 latest
FROM node:20 AS builder
WORKDIR /build
@@ -91,6 +92,7 @@ COPY . .
RUN npm run build
## 生产阶段
## 建议使用 nginx:alpine 或其他具体版本
FROM nginx:alpine
WORKDIR /usr/share/nginx/html
@@ -103,6 +105,7 @@ COPY --from=builder /build/dist .
#### 1. 尽早设置 WORKDIR
```docker
# 建议使用 node:20 等主/次版本号标签
FROM node:20
WORKDIR /app # 尽早设置