mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-28 00:20:24 +08:00
Merge pull request #367 from meysamhadeli/chore-update-dockerfiles-to-dotnet-10
Chore update dockerfiles to dotnet 10
This commit is contained in:
commit
e259b64476
@ -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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY ./.editorconfig ./
|
COPY ./.editorconfig ./
|
||||||
@ -29,7 +29,7 @@ WORKDIR /src/ApiGateway/src
|
|||||||
# and no build, as we did it already
|
# and no build, as we did it already
|
||||||
RUN dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY ./.editorconfig ./
|
COPY ./.editorconfig ./
|
||||||
@ -32,7 +32,7 @@ WORKDIR /src/ApiGateway/src
|
|||||||
RUN --mount=type=cache,id=gateway_nuget,target=/root/.nuget/packages \
|
RUN --mount=type=cache,id=gateway_nuget,target=/root/.nuget/packages \
|
||||||
dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -24,15 +24,14 @@ public class SecuritySchemeDocumentTransformer : IOpenApiDocumentTransformer
|
|||||||
BearerFormat = "JWT",
|
BearerFormat = "JWT",
|
||||||
In = ParameterLocation.Header,
|
In = ParameterLocation.Header,
|
||||||
Description =
|
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
|
["ApiKey"] = new OpenApiSecurityScheme
|
||||||
{
|
{
|
||||||
Name = "X-API-KEY",
|
Name = "X-API-KEY",
|
||||||
Type = SecuritySchemeType.ApiKey,
|
Type = SecuritySchemeType.ApiKey,
|
||||||
In = ParameterLocation.Header,
|
In = ParameterLocation.Header,
|
||||||
Description =
|
Description = "Enter your API key in the text input below.\n\nExample: '12345-abcdef'",
|
||||||
"Enter your API key in the text input below.\n\nExample: '12345-abcdef'",
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY ./.editorconfig ./
|
COPY ./.editorconfig ./
|
||||||
@ -31,7 +31,7 @@ WORKDIR /src/Services/Booking/src/Booking.Api
|
|||||||
# and no build, as we did it already
|
# and no build, as we did it already
|
||||||
RUN dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY ./.editorconfig ./
|
COPY ./.editorconfig ./
|
||||||
@ -34,7 +34,7 @@ WORKDIR /src/Services/Booking/src/Booking.Api
|
|||||||
RUN --mount=type=cache,id=booking_nuget,target=/root/.nuget/packages\
|
RUN --mount=type=cache,id=booking_nuget,target=/root/.nuget/packages\
|
||||||
dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY ./.editorconfig ./
|
COPY ./.editorconfig ./
|
||||||
@ -31,7 +31,7 @@ WORKDIR /src/Services/Flight/src/Flight.Api
|
|||||||
# and no build, as we did it already
|
# and no build, as we did it already
|
||||||
RUN dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY ./.editorconfig ./
|
COPY ./.editorconfig ./
|
||||||
@ -34,7 +34,7 @@ WORKDIR /src/Services/Flight/src/Flight.Api
|
|||||||
RUN --mount=type=cache,id=flight_nuget,target=/root/.nuget/packages \
|
RUN --mount=type=cache,id=flight_nuget,target=/root/.nuget/packages \
|
||||||
dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
@ -31,7 +31,7 @@ WORKDIR /src/Services/Identity/src/Identity.Api
|
|||||||
# and no build, as we did it already
|
# and no build, as we did it already
|
||||||
RUN dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
@ -34,7 +34,7 @@ WORKDIR /src/Services/Identity/src/Identity.Api
|
|||||||
RUN --mount=type=cache,id=identity_nuget,target=/root/.nuget/packages \
|
RUN --mount=type=cache,id=identity_nuget,target=/root/.nuget/packages \
|
||||||
dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY ./.editorconfig ./
|
COPY ./.editorconfig ./
|
||||||
@ -31,7 +31,7 @@ WORKDIR /src/Services/Passenger/src/Passenger.Api
|
|||||||
# and no build, as we did it already
|
# and no build, as we did it already
|
||||||
RUN dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
@ -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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY ./.editorconfig ./
|
COPY ./.editorconfig ./
|
||||||
@ -34,7 +34,7 @@ WORKDIR /src/Services/Passenger/src/Passenger.Api
|
|||||||
RUN --mount=type=cache,id=passenger_nuget,target=/root/.nuget/packages \
|
RUN --mount=type=cache,id=passenger_nuget,target=/root/.nuget/packages \
|
||||||
dotnet publish -c Release --no-build -o out
|
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
|
# Setup working directory for the project
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user