chore: update Dockerfiles to .net 10

This commit is contained in:
Meysam Hadeli 2026-02-16 21:06:37 +03:30
parent bd94742d18
commit 64dfee4224
11 changed files with 23 additions and 24 deletions

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /
COPY ./.editorconfig ./
@ -29,7 +29,7 @@ WORKDIR /src/ApiGateway/src
# and no build, as we did it already
RUN dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /
COPY ./.editorconfig ./
@ -32,7 +32,7 @@ WORKDIR /src/ApiGateway/src
RUN --mount=type=cache,id=gateway_nuget,target=/root/.nuget/packages \
dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -24,15 +24,14 @@ public class SecuritySchemeDocumentTransformer : IOpenApiDocumentTransformer
BearerFormat = "JWT",
In = ParameterLocation.Header,
Description =
"Enter 'Bearer' [space] and your token in the text input below.\n\nExample: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'",
"Enter 'Bearer' [space] and your token in the text input below.\n\nExample: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'",
},
["ApiKey"] = new OpenApiSecurityScheme
{
Name = "X-API-KEY",
Type = SecuritySchemeType.ApiKey,
In = ParameterLocation.Header,
Description =
"Enter your API key in the text input below.\n\nExample: '12345-abcdef'",
Description = "Enter your API key in the text input below.\n\nExample: '12345-abcdef'",
},
};
@ -46,4 +45,4 @@ public class SecuritySchemeDocumentTransformer : IOpenApiDocumentTransformer
return Task.CompletedTask;
}
}
}

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /
COPY ./.editorconfig ./
@ -31,7 +31,7 @@ WORKDIR /src/Services/Booking/src/Booking.Api
# and no build, as we did it already
RUN dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /
COPY ./.editorconfig ./
@ -34,7 +34,7 @@ WORKDIR /src/Services/Booking/src/Booking.Api
RUN --mount=type=cache,id=booking_nuget,target=/root/.nuget/packages\
dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /
COPY ./.editorconfig ./
@ -31,7 +31,7 @@ WORKDIR /src/Services/Flight/src/Flight.Api
# and no build, as we did it already
RUN dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /
COPY ./.editorconfig ./
@ -34,7 +34,7 @@ WORKDIR /src/Services/Flight/src/Flight.Api
RUN --mount=type=cache,id=flight_nuget,target=/root/.nuget/packages \
dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
# Setup working directory for the project
WORKDIR /
@ -31,7 +31,7 @@ WORKDIR /src/Services/Identity/src/Identity.Api
# and no build, as we did it already
RUN dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
# Setup working directory for the project
WORKDIR /
@ -34,7 +34,7 @@ WORKDIR /src/Services/Identity/src/Identity.Api
RUN --mount=type=cache,id=identity_nuget,target=/root/.nuget/packages \
dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /
COPY ./.editorconfig ./
@ -31,7 +31,7 @@ WORKDIR /src/Services/Passenger/src/Passenger.Api
# and no build, as we did it already
RUN dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /
COPY ./.editorconfig ./
@ -34,7 +34,7 @@ WORKDIR /src/Services/Passenger/src/Passenger.Api
RUN --mount=type=cache,id=passenger_nuget,target=/root/.nuget/packages \
dotnet publish -c Release --no-build -o out
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
# Setup working directory for the project
WORKDIR /