Skip to content

Commit 5bf6f94

Browse files
committed
Upgrade docker file to aspnet:8.0-alpine
1 parent 9858f8c commit 5bf6f94

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

Rsk.Samples.IdentityServer.AdminUIIntegration.Tests/AdminUIIntegration.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ItemGroup>
88
<PackageReference Include="FluentAssertions" Version="6.12.0" />
99
<PackageReference Include="IdentityModel.AspNetCore.OAuth2Introspection" Version="6.2.0" />
10-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.0" />
10+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.1" />
1111
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
1212
<PackageReference Include="Moq" Version="4.20.70" />
1313
<PackageReference Include="xunit" Version="2.6.6" />

Rsk.Samples.IdentityServer.AdminUiIntegration/Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1 - Build
2-
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
2+
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
33
WORKDIR /app
44

55
# Copy csproj and restore as distinct layers
@@ -11,7 +11,13 @@ COPY . .
1111
RUN dotnet publish -c Release -o out
1212

1313
# Stage 2 - Runtime
14-
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS runtime
14+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS runtime
15+
16+
# Ensuring latest openssl is installed as the one in base
17+
# is out of date and vulnerable
18+
RUN apk update && \
19+
apk upgrade && \
20+
apk upgrade openssl
1521

1622
# Ensuring latest openssl is installed as the one in base
1723
# is out of date and vulnerable

Rsk.Samples.IdentityServer.AdminUiIntegration/Rsk.Samples.IdentityServer.AdminUiIntegration.csproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
<PackageReference Include="Duende.IdentityServer.AspNetIdentity" Version="7.0.0-rc.1" />
2525
<PackageReference Include="Duende.IdentityServer.EntityFramework" Version="7.0.0-rc.1" />
2626
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.4" />
27-
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.0" />
28-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.0" />
29-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.0" />
27+
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.1" />
28+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" />
29+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.1" />
3030
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
3131
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
32-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
32+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.1" />
3333
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
34-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0" />
34+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.1" />
3535
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.0-beta.2" />
3636
<PackageReference Include="Rsk.DynamicAuthenticationProviders" Version="1.5.2" />
3737
<PackageReference Include="Rsk.DynamicAuthenticationProviders.EntityFramework" Version="1.4.2" />
3838
<PackageReference Include="Rsk.DynamicAuthenticationProviders.Saml" Version="1.7.2" />
39-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.0.3" />
39+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.2.0" />
4040
<PackageReference Include="Rsk.Saml.DuendeIdentityServer" Version="7.2.2" />
4141
<PackageReference Include="Rsk.Saml.DuendeIdentityServer.EntityFramework" Version="7.2.2" />
4242
</ItemGroup>

0 commit comments

Comments
 (0)