File tree Expand file tree Collapse file tree 8 files changed +21
-21
lines changed
Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker
CentOS/WordToPDFDockerSample
Debian/WordToPDFDockerSample
RHEL/WordToPDFDockerSample
Ubuntu/WordToPDFDockerSample Expand file tree Collapse file tree 8 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 22
33FROM centos:8
44
5- Run dnf install dotnet-sdk-3.1 -y
6- RUN dnf install dotnet-runtime-3.1 -y
5+ Run dnf install dotnet-sdk-8.0 -y
6+ RUN dnf install dotnet-runtime-8.0 -y
77
88RUN dnf install fontconfig -y
99
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >netcoreapp3.1 </TargetFramework >
5+ <TargetFramework >net8.0 </TargetFramework >
66 <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
77 <DockerfileContext >.</DockerfileContext >
88 </PropertyGroup >
99
1010 <ItemGroup >
1111 <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.14" />
12- <PackageReference Include =" SkiaSharp.NativeAssets.Linux" Version =" 2.80.2 " />
13- <PackageReference Include =" Syncfusion.DocIORenderer.Net.Core" Version =" 19.2.0.55 " />
12+ <PackageReference Include =" SkiaSharp.NativeAssets.Linux" Version =" 2.88.6 " />
13+ <PackageReference Include =" Syncfusion.DocIORenderer.Net.Core" Version =" * " />
1414 </ItemGroup >
1515
1616</Project >
Original file line number Diff line number Diff line change 11# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22
3- FROM mcr.microsoft.com/dotnet/aspnet:3.1 -buster-slim AS base
3+ FROM mcr.microsoft.com/dotnet/aspnet:8.0 -buster-slim AS base
44RUN apt-get update -y && apt-get install fontconfig -y
55WORKDIR /app
66
7- FROM mcr.microsoft.com/dotnet/sdk:3.1 -buster-slim AS build
7+ FROM mcr.microsoft.com/dotnet/sdk:8.0 -buster-slim AS build
88WORKDIR /src
99COPY ["WordToPDFDockerSample.csproj" , "." ]
1010RUN dotnet restore "./WordToPDFDockerSample.csproj"
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >netcoreapp3.1 </TargetFramework >
5+ <TargetFramework >net8.0 </TargetFramework >
66 <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
77 <DockerfileContext >.</DockerfileContext >
88 </PropertyGroup >
99
1010 <ItemGroup >
11- <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.14 " />
12- <PackageReference Include =" SkiaSharp.NativeAssets.Linux" Version =" 2.80.2 " />
13- <PackageReference Include =" Syncfusion.DocIORenderer.Net.Core" Version =" 19.2.0.55 " />
11+ <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.21.0 " />
12+ <PackageReference Include =" SkiaSharp.NativeAssets.Linux" Version =" 2.88.6 " />
13+ <PackageReference Include =" Syncfusion.DocIORenderer.Net.Core" Version =" * " />
1414 </ItemGroup >
1515
1616</Project >
Original file line number Diff line number Diff line change 11# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22
3- FROM registry.access.redhat.com/ubi8/dotnet-31 -runtime AS base
3+ FROM registry.access.redhat.com/ubi8/dotnet-80 -runtime AS base
44USER root
55RUN yum -y install fontconfig --disablerepo=epel
66WORKDIR /
77
8- FROM registry.access.redhat.com/ubi8/dotnet-31 AS build
8+ FROM registry.access.redhat.com/ubi8/dotnet-80 AS build
99WORKDIR /src
1010COPY ["WordToPDFDockerSample.csproj" , "" ]
1111RUN dotnet restore "./WordToPDFDockerSample.csproj"
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >netcoreapp3.1 </TargetFramework >
5+ <TargetFramework >net8.0 </TargetFramework >
66 <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
77 <DockerfileContext >.</DockerfileContext >
88 </PropertyGroup >
99
1010 <ItemGroup >
1111 <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.14" />
12- <PackageReference Include =" SkiaSharp.NativeAssets.Linux" Version =" 2.80.2 " />
13- <PackageReference Include =" Syncfusion.DocIORenderer.Net.Core" Version =" 19.2.0.55 " />
12+ <PackageReference Include =" SkiaSharp.NativeAssets.Linux" Version =" 2.88.6 " />
13+ <PackageReference Include =" Syncfusion.DocIORenderer.Net.Core" Version =" * " />
1414 </ItemGroup >
1515
1616</Project >
Original file line number Diff line number Diff line change 11# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22
3- FROM mcr.microsoft.com/dotnet/runtime:3.1 -bionic AS base
3+ FROM mcr.microsoft.com/dotnet/runtime:8.0 -bionic AS base
44RUN apt-get update -y && apt-get install fontconfig -y
55WORKDIR /app
66
7- FROM mcr.microsoft.com/dotnet/sdk:3.1 -bionic AS build
7+ FROM mcr.microsoft.com/dotnet/sdk:8.0 -bionic AS build
88WORKDIR /src
99COPY ["WordToPDFDockerSample.csproj" , "." ]
1010RUN dotnet restore "./WordToPDFDockerSample.csproj"
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >netcoreapp3.1 </TargetFramework >
5+ <TargetFramework >net8.0 </TargetFramework >
66 <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
77 <DockerfileContext >.</DockerfileContext >
88 </PropertyGroup >
99
1010 <ItemGroup >
1111 <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.14" />
12- <PackageReference Include =" SkiaSharp.NativeAssets.Linux" Version =" 2.80.2 " />
13- <PackageReference Include =" Syncfusion.DocIORenderer.Net.Core" Version =" 19.2.0.55 " />
12+ <PackageReference Include =" SkiaSharp.NativeAssets.Linux" Version =" 2.88.6 " />
13+ <PackageReference Include =" Syncfusion.DocIORenderer.Net.Core" Version =" * " />
1414 </ItemGroup >
1515
1616</Project >
You can’t perform that action at this time.
0 commit comments