Refresh k8s docker versions and references

This commit is contained in:
yeasy
2026-04-21 20:57:33 -07:00
parent 318de33fd4
commit 9a06a18f92
26 changed files with 379 additions and 98 deletions
@@ -193,7 +193,7 @@ RUN set -x ; cd /app \
FROM composer as composer
COPY database/ /app/database/
COPY composer.json /app/
COPY composer.json composer.lock /app/
RUN set -x ; cd /app \
&& composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ \
+2 -2
View File
@@ -84,7 +84,7 @@ RUN apt-get update && \
#### 3. 使用 `set -e` `pipefail`
默认情况下管道命令 `cmd1 | cmd2` 只要 `cmd2` 成功整个 `RUN` 视为成功
默认情况下管道命令 `cmd1 | cmd2` 的返回值由最后一个命令 (`cmd2`) 决定即使前面的命令失败了整个 `RUN` 仍可能视为成功
** 隐蔽的错误**
@@ -193,6 +193,6 @@ wget http://example.com/file.tar.gz
EOF
```
> 💡 使用 heredoc 需要在 Dockerfile 首行声明 BuildKit 语法版本`# syntax=docker/dockerfile:1`
> 使用 heredoc 需要在 Dockerfile 首行声明 BuildKit 语法版本`# syntax=docker/dockerfile:1`
---
+3 -1
View File
@@ -63,7 +63,9 @@ CMD echo $HOME
CMD ["sh", "-c", "echo $HOME"]
```
**优点**可以使用环境变量管道等 shell 特性 **缺点**主进程是 sh信号无法正确传递给应用
**优点**可以使用环境变量管道等 shell 特性
**缺点**主进程是 sh信号无法正确传递给应用
---