From 142661f9d287c1c104e9519d8ba1211bfa4e6b98 Mon Sep 17 00:00:00 2001 From: Erisa A Date: Tue, 14 Nov 2023 20:36:28 +0000 Subject: [PATCH] Retarget to .NET 8.0.0 --- Cliptok.csproj | 4 ++-- Dockerfile | 6 +++--- Dockerfile.multiarch | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cliptok.csproj b/Cliptok.csproj index 023f2e70..8b2c3684 100644 --- a/Cliptok.csproj +++ b/Cliptok.csproj @@ -2,8 +2,8 @@ Exe - net7.0 - 11.0 + net8.0 + 12.0 d9345310-5908-4697-8613-28a24d06d183 diff --git a/Dockerfile b/Dockerfile index e8e558eb..f65c621b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:7.0.403 AS build-env +FROM mcr.microsoft.com/dotnet/sdk:8.0.100 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers @@ -10,7 +10,7 @@ COPY . ./ RUN dotnet build -c Release -o out # We already have this image pulled, its actually quicker to reuse it -FROM mcr.microsoft.com/dotnet/sdk:7.0.403 AS git-collector +FROM mcr.microsoft.com/dotnet/sdk:8.0.100 AS git-collector WORKDIR /out COPY . . RUN touch dummy.txt && \ @@ -21,7 +21,7 @@ RUN touch dummy.txt && \ fi # Build runtime image -FROM mcr.microsoft.com/dotnet/runtime:7.0.13-alpine3.18 +FROM mcr.microsoft.com/dotnet/runtime:8.0.0-alpine3.18 LABEL com.centurylinklabs.watchtower.enable true WORKDIR /app RUN apk add --no-cache git redis openssh diff --git a/Dockerfile.multiarch b/Dockerfile.multiarch index ddfc517b..e9f525c9 100644 --- a/Dockerfile.multiarch +++ b/Dockerfile.multiarch @@ -1,5 +1,5 @@ FROM --platform=${BUILDPLATFORM} \ - mcr.microsoft.com/dotnet/sdk:7.0.403 AS build-env + mcr.microsoft.com/dotnet/sdk:8.0.100 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers @@ -11,7 +11,7 @@ COPY . ./ RUN dotnet build -c Release -o out # We already have this image pulled, its actually quicker to reuse it -FROM mcr.microsoft.com/dotnet/sdk:7.0.403 AS git-collector +FROM mcr.microsoft.com/dotnet/sdk:8.0.100 AS git-collector WORKDIR /out COPY . . RUN touch dummy.txt && \ @@ -22,7 +22,7 @@ RUN touch dummy.txt && \ fi # Build runtime image -FROM mcr.microsoft.com/dotnet/runtime:7.0.13-alpine3.18 +FROM mcr.microsoft.com/dotnet/runtime:8.0.0-alpine3.18 LABEL com.centurylinklabs.watchtower.enable true WORKDIR /app RUN apk add --no-cache git redis openssh