Skip to content

Commit 53f406f

Browse files
committed
Fix Docker pack: copy README and .git for packaging and Source Link
The pack stage failed with NU5019 (File not found: '/README.md') because the new PackageReadmeFile content was never copied into the build context. Copy README.md alongside icon.png. Also copy ./.git (and stop ignoring it) so Microsoft.SourceLink.GitHub can resolve the commit and emit real source link information instead of warning that source control information is unavailable.
1 parent 0d97dae commit 53f406f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
**/bin
22
**/obj
33
**/.vscode
4-
**/.vs
5-
.git
4+
**/.vs

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ RUN dotnet restore
1313

1414
FROM restore AS build
1515
ARG VERSION
16+
COPY ./.git ./.git
1617
COPY ./icon.png .
18+
COPY ./README.md .
1719
COPY ./src/Kevsoft.WLED/ ./src/Kevsoft.WLED/
1820
COPY ./src/Kevsoft.WLED.DependencyInjection/ ./src/Kevsoft.WLED.DependencyInjection/
1921
RUN dotnet build ./src/Kevsoft.WLED.DependencyInjection/Kevsoft.WLED.DependencyInjection.csproj --configuration Release -p:Version=${VERSION} --no-restore

0 commit comments

Comments
 (0)