Skip to content

Commit

Permalink
Retarget to .NET 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Nov 14, 2023
1 parent b1c5a46 commit 142661f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cliptok.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<LangVersion>11.0</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12.0</LangVersion>
<UserSecretsId>d9345310-5908-4697-8613-28a24d06d183</UserSecretsId>
</PropertyGroup>

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 && \
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.multiarch
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 && \
Expand All @@ -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
Expand Down

0 comments on commit 142661f

Please sign in to comment.