Updated net version to 9
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy solution + project files first (for restore)
|
# Copy solution + project files first
|
||||||
COPY CronApp.sln ./
|
COPY CronApp.sln ./
|
||||||
COPY Scheduler/Scheduler.csproj Scheduler/
|
COPY Scheduler/Scheduler.csproj Scheduler/
|
||||||
|
|
||||||
RUN dotnet restore CronApp.sln
|
RUN dotnet restore CronApp.sln
|
||||||
|
|
||||||
# Copy rest of the source
|
# Copy the rest of the code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Publish from the project folder
|
# Publish from the project folder
|
||||||
RUN dotnet publish Scheduler/Scheduler.csproj -c Release -o /app
|
RUN dotnet publish Scheduler/Scheduler.csproj -c Release -o /app
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/runtime:8.0
|
FROM mcr.microsoft.com/dotnet/runtime:9.0
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app .
|
COPY --from=build /app .
|
||||||
ENTRYPOINT ["dotnet", "Scheduler.dll"]
|
ENTRYPOINT ["dotnet", "Scheduler.dll"]
|
||||||
|
|||||||
Reference in New Issue
Block a user