Update dockerfile to .NET v8

main
ilitirit 1 year ago
parent 1b142ab3ee
commit 0b77b336c7

@ -1,5 +1,5 @@
# Set the base image # Set the base image
FROM mcr.microsoft.com/dotnet/sdk:7.0.202-jammy-arm64v8 AS build FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy-arm64v8 AS build
# Set the working directory # Set the working directory
WORKDIR /src WORKDIR /src
@ -22,7 +22,7 @@ ARG TARGET_RUNTIME=linux-x64
RUN dotnet publish "Expedience.Api/Expedience.Api.csproj" -c Release -o /app/publish --self-contained --runtime $TARGET_RUNTIME RUN dotnet publish "Expedience.Api/Expedience.Api.csproj" -c Release -o /app/publish --self-contained --runtime $TARGET_RUNTIME
# Set the base image for the final runtime # Set the base image for the final runtime
FROM mcr.microsoft.com/dotnet/aspnet:7.0.4-jammy-arm64v8 FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy-arm64v8 AS build
# Set the working directory # Set the working directory
WORKDIR /app WORKDIR /app

Loading…
Cancel
Save