mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-07 06:32:08 +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
|
WORKDIR /src
|
||||||
|
|
||||||
# Setup working directory for the project
|
# Setup working directory for the project
|
||||||
@ -26,7 +26,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:6.0
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||||
|
|
||||||
# Setup working directory for the project
|
# Setup working directory for the project
|
||||||
WORKDIR /app
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
# Setup working directory for the project
|
# 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
|
# 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:6.0
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||||
|
|
||||||
# Setup working directory for the project
|
# Setup working directory for the project
|
||||||
WORKDIR /app
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
# Setup working directory for the project
|
# 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
|
# 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:6.0
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||||
|
|
||||||
# Setup working directory for the project
|
# Setup working directory for the project
|
||||||
WORKDIR /app
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
# Setup working directory for the project
|
# 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
|
# 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:6.0
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||||
|
|
||||||
# Setup working directory for the project
|
# Setup working directory for the project
|
||||||
WORKDIR /app
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
# Setup working directory for the project
|
# 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
|
# 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:6.0
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||||
|
|
||||||
# Setup working directory for the project
|
# Setup working directory for the project
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user