apache / apache/cloudstack

`.dockerignore`: Use an allowlist approach for selective builds

未關閉
#12,827 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
docker priority: low
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
6 天 19 小時
30 天內合併 PR
32

描述

For very selective builds, a robust strategy is to ignore everything by default (*) and then use the negation pattern (!) to explicitly include only the necessary files or directories.

Example:

```
# Ignore everything
*
# Include only what's needed
!src/
!package.json
!package-lock.json
```

Seems it has not been updated for 8 years:

https://github.com/apache/cloudstack/blob/main/.dockerignore

貢獻指南

開啟貢獻指南

研究方向

從儲存庫根目錄中的 .dockerignore 開始,issue 指出該檔案已過時,並將其目前的模式與提議的 allowlist 範例進行比較。驗證所得的排除項仍允許 issue 中描述的選擇性建置和所需路徑。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
docker
領域
build-system
Issue 類型
重構
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。