chore(docker): 添加 NuGet.Config 文件到镜像构建
Some checks failed
Build and Push Docker / build (push) Has been cancelled
Some checks failed
Build and Push Docker / build (push) Has been cancelled
- 在 Dockerfile 中新增 COPY 指令,拷贝 NuGet.Config 文件 - 支持镜像构建时使用自定义的 NuGet 源配置 - 保持现有依赖恢复流程不变 - 增强构建过程的灵活性和可配置性
This commit is contained in:
parent
7c9409b858
commit
9c59d6881b
@ -10,6 +10,7 @@ WORKDIR /src
|
||||
# Copy Directory.Build.props and Directory.Packages.props for central package management
|
||||
COPY ["Directory.Build.props", "./"]
|
||||
COPY ["Directory.Packages.props", "./"]
|
||||
COPY ["NuGet.Config", "./"]
|
||||
|
||||
# Copy project file and restore dependencies
|
||||
COPY ["src/Fengling.Console.csproj", "src/"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user