mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-17 16:36:25 +08:00
feat: Update Dockerfile to .net 7 SDK
This commit is contained in:
parent
c4748908b9
commit
6627ed2c23
@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS builder
|
||||
WORKDIR /src
|
||||
|
||||
# Setup working directory for the project
|
||||
@ -26,7 +26,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:6.0
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||
|
||||
# Setup working directory for the project
|
||||
WORKDIR /app
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Setup working directory for the project
|
||||
@ -28,7 +28,7 @@ WORKDIR /app/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:6.0
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||
|
||||
# Setup working directory for the project
|
||||
WORKDIR /app
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Setup working directory for the project
|
||||
@ -28,7 +28,7 @@ WORKDIR /app/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:6.0
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||
|
||||
# Setup working directory for the project
|
||||
WORKDIR /app
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Setup working directory for the project
|
||||
@ -28,7 +28,7 @@ WORKDIR /app/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:6.0
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||
|
||||
# Setup working directory for the project
|
||||
WORKDIR /app
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Setup working directory for the project
|
||||
@ -28,7 +28,7 @@ WORKDIR /app/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:6.0
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||
|
||||
# Setup working directory for the project
|
||||
WORKDIR /app
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user