feat: Update Dockerfile to .net 7 SDK

This commit is contained in:
meysamhadeli 2023-01-05 02:25:55 +03:30
parent c4748908b9
commit 6627ed2c23
5 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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