Merge pull request 'Fix Docker build by excluding test files and using explicit project path' (#5) from feature/unit-tests into main
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
+2
-2
@@ -9,8 +9,8 @@ WORKDIR /src
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Restore & publish (self-contained trimming can be added later if desired)
|
# Restore & publish (self-contained trimming can be added later if desired)
|
||||||
RUN dotnet restore
|
RUN dotnet restore SimpleIdp.csproj
|
||||||
RUN dotnet publish -c $BUILD_CONFIGURATION -o /app/publish --no-restore
|
RUN dotnet publish SimpleIdp.csproj -c $BUILD_CONFIGURATION -o /app/publish --no-restore
|
||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
|
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Remove="SimpleIdp.Tests/**" />
|
||||||
|
<EmbeddedResource Remove="SimpleIdp.Tests/**" />
|
||||||
|
<None Remove="SimpleIdp.Tests/**" />
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.3.0" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.3.0" />
|
||||||
<PackageReference Include="SimpleIdServer.IdServer.Pwd" Version="6.0.*-*" />
|
<PackageReference Include="SimpleIdServer.IdServer.Pwd" Version="6.0.*-*" />
|
||||||
|
|||||||
Reference in New Issue
Block a user