bump .NET8.0 version of the docker-compose generator

This commit is contained in:
nicolas.dorier 2023-12-11 18:11:36 +09:00
parent 2a9cf197cf
commit aa55e7c525
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
4 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
# #
FROM mcr.microsoft.com/dotnet/sdk:6.0.401-bullseye-slim AS builder FROM mcr.microsoft.com/dotnet/sdk:8.0.100-bookworm-slim AS builder
WORKDIR /source WORKDIR /source
COPY src/docker-compose-generator.csproj docker-compose-generator.csproj COPY src/docker-compose-generator.csproj docker-compose-generator.csproj
# Cache some dependencies # Cache some dependencies
@ -8,7 +8,7 @@ COPY src/. .
RUN dotnet publish --output /app/ --configuration Release RUN dotnet publish --output /app/ --configuration Release
# #
FROM mcr.microsoft.com/dotnet/runtime:6.0.9-bullseye-slim FROM mcr.microsoft.com/dotnet/runtime:8.0.0-bookworm-slim
LABEL org.btcpayserver.image=docker-compose-generator LABEL org.btcpayserver.image=docker-compose-generator
WORKDIR /datadir WORKDIR /datadir
WORKDIR /app WORKDIR /app

View File

@ -1,5 +1,5 @@
# This is a manifest image, will pull the image with the same arch as the builder machine # This is a manifest image, will pull the image with the same arch as the builder machine
FROM mcr.microsoft.com/dotnet/sdk:6.0.401-bullseye-slim AS builder FROM mcr.microsoft.com/dotnet/sdk:8.0.100-bookworm-slim AS builder
WORKDIR /source WORKDIR /source
COPY src/docker-compose-generator.csproj docker-compose-generator.csproj COPY src/docker-compose-generator.csproj docker-compose-generator.csproj
# Cache some dependencies # Cache some dependencies
@ -8,7 +8,7 @@ COPY src/. .
RUN dotnet publish --output /app/ --configuration Release RUN dotnet publish --output /app/ --configuration Release
# Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program # Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program
FROM mcr.microsoft.com/dotnet/runtime:6.0.9-bullseye-slim-arm32v7 FROM mcr.microsoft.com/dotnet/runtime:8.0.0-bookworm-slim-arm32v7
LABEL org.btcpayserver.image=docker-compose-generator LABEL org.btcpayserver.image=docker-compose-generator
WORKDIR /datadir WORKDIR /datadir

View File

@ -1,5 +1,5 @@
# This is a manifest image, will pull the image with the same arch as the builder machine # This is a manifest image, will pull the image with the same arch as the builder machine
FROM mcr.microsoft.com/dotnet/sdk:6.0.401-bullseye-slim AS builder FROM mcr.microsoft.com/dotnet/sdk:8.0.100-bookworm-slim AS builder
WORKDIR /source WORKDIR /source
COPY src/docker-compose-generator.csproj docker-compose-generator.csproj COPY src/docker-compose-generator.csproj docker-compose-generator.csproj
# Cache some dependencies # Cache some dependencies
@ -8,7 +8,7 @@ COPY src/. .
RUN dotnet publish --output /app/ --configuration Release RUN dotnet publish --output /app/ --configuration Release
# Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program # Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program
FROM mcr.microsoft.com/dotnet/runtime:6.0.9-bullseye-slim-arm64v8 FROM mcr.microsoft.com/dotnet/runtime:8.0.0-bookworm-slim-arm64v8
LABEL org.btcpayserver.image=docker-compose-generator LABEL org.btcpayserver.image=docker-compose-generator
WORKDIR /datadir WORKDIR /datadir

View File

@ -2,13 +2,13 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<LangVersion>10.0</LangVersion> <LangVersion>12</LangVersion>
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">net6.0</TargetFramework> <TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">net8.0</TargetFramework>
<TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">$(TargetFrameworkOverride)</TargetFramework> <TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">$(TargetFrameworkOverride)</TargetFramework>
<RootNamespace>DockerGenerator</RootNamespace> <RootNamespace>DockerGenerator</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="YamlDotNet" Version="8.0.0" /> <PackageReference Include="YamlDotNet" Version="13.7.1" />
</ItemGroup> </ItemGroup>
</Project> </Project>