Skip to content

Commit 0c83097

Browse files
committed
ensure license and notice get packaged in docker container
1 parent 96818a2 commit 0c83097

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ WORKDIR /src
1616
COPY ["src/Elastic.Markdown/Elastic.Markdown.csproj", "src/Elastic.Markdown/Elastic.Markdown.csproj"]
1717
COPY ["src/docs-builder/docs-builder.csproj", "src/docs-builder/docs-builder.csproj"]
1818
COPY ["docs/docs.csproj", "docs/docs.csproj"]
19+
COPY "build/build.csproj" "build/build.csproj"
20+
COPY ".github/.github.csproj" ".github/.github.csproj"
21+
COPY "tests/Elastic.Markdown.Tests/Elastic.Markdown.Tests.csproj" "tests/Elastic.Markdown.Tests/Elastic.Markdown.Tests.csproj"
1922
COPY ["docs-builder.sln", "docs-builder.sln"]
2023
RUN dotnet restore "docs-builder.sln"
2124
COPY . .
@@ -44,6 +47,8 @@ RUN adduser --disabled-password \
4447
USER dotnetuser
4548
WORKDIR /app
4649

50+
COPY NOTICE.txt .
51+
COPY LICENSE.txt .
4752
COPY --from=publish /app/publish .
4853
CMD chmod +x docs-builder
4954

src/Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<Content Include="(SolutionRoot)/build/nuget-icon.png" Pack="True" Link="nuget-icon.png" PackagePath="nuget-icon.png" CopyToOutputDirectory="PreserveNewest" />
16-
<None Include="(SolutionRoot)/LICENSE.txt" Pack="True" PackagePath="LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
17-
<None Include="$(SolutionRoot)/NOTICE.txt" CopyToOutputDirectory="PreserveNewest" Pack="True" PackagePath="NOTICE.txt" />
15+
<Content Include="$(SolutionRoot)\build\nuget-icon.png" Pack="True" Link="nuget-icon.png" PackagePath="nuget-icon.png" CopyToOutputDirectory="PreserveNewest" />
16+
<None Include="$(SolutionRoot)\LICENSE.txt" Pack="True" PackagePath="LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
17+
<None Include="$(SolutionRoot)\NOTICE.txt" Pack="True" PackagePath="NOTICE.txt" CopyToOutputDirectory="PreserveNewest" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

0 commit comments

Comments
 (0)