fix(docker): 移除 syntax 指令避免访问 Docker Hub
Some checks failed
Deploy / Deploy to Knative (push) Has been cancelled
Deploy / Build and Push Images (push) Has been cancelled

- 移除 Dockerfile 第一行的 syntax=docker/dockerfile:1
- 该指令会导致 BuildKit 尝试从 Docker Hub 拉取镜像
- 修复无法访问 Docker Hub 导致的构建失败问题
- 对于标准 Dockerfile 特性,此指令非必需
This commit is contained in:
Charile Zhou
2026-01-22 22:38:15 +08:00
parent 097658606b
commit 0a87cf8939
2 changed files with 0 additions and 4 deletions

View File

@@ -1,5 +1,3 @@
# syntax=docker/dockerfile:1
# ============================================
# Base stage: Install dependencies
# ============================================

View File

@@ -1,5 +1,3 @@
# syntax=docker/dockerfile:1
# ============================================
# Base stage: Install dependencies
# ============================================