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
+6 -6
View File
@@ -18,14 +18,14 @@ ENV <key1>=<value1> <key2>=<value2> ...
#### 设置单个变量
```docker
ENV NODE_VERSION 20.10.0
ENV NODE_VERSION 20
ENV APP_ENV production
```
#### 设置多个变量
```docker
ENV NODE_VERSION=20.10.0 \
ENV NODE_VERSION=20 \
APP_ENV=production \
APP_NAME="My Application"
```
@@ -158,15 +158,15 @@ $ docker build --build-arg NODE_VERSION=18 -t myapp .
```docker
## ✅ 好:版本集中管理
ENV NGINX_VERSION=1.25.0 \
NODE_VERSION=20.10.0 \
PYTHON_VERSION=3.12.0
ENV NGINX_VERSION=1.25 \
NODE_VERSION=20 \
PYTHON_VERSION=3.12
RUN apt-get install nginx=${NGINX_VERSION}
## ❌ 差:版本分散在各处
RUN apt-get install nginx=1.25.0
RUN apt-get install nginx=1.25
```
#### 2. 不要存储敏感信息