Skip to content

Commit ac79ce4

Browse files
authored
Merge pull request #236 from SyncfusionExamples/988484-LinuxFAQ
988484-Add FAQ about using Linux in XlsIO
2 parents 885314c + 2ab2d36 commit ac79ce4

File tree

16 files changed

+181
-0
lines changed

16 files changed

+181
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
LICENSE
25+
README.md
26+
!**/.gitignore
27+
!.git/HEAD
28+
!.git/config
29+
!.git/packed-refs
30+
!.git/refs/heads/**
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.14.36221.1 d17.14
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Copy_fonts_to_linux_containers", "Copy_fonts_to_linux_containers\Copy_fonts_to_linux_containers.csproj", "{99A9E4D7-F051-40E7-AD6B-299EA8596F68}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{99A9E4D7-F051-40E7-AD6B-299EA8596F68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{99A9E4D7-F051-40E7-AD6B-299EA8596F68}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{99A9E4D7-F051-40E7-AD6B-299EA8596F68}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{99A9E4D7-F051-40E7-AD6B-299EA8596F68}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {B6F934CE-C083-4CAF-A048-13ACF61362E4}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="8.3.1.2" />
13+
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.22.1" />
14+
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="3.116.1" />
15+
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="*" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<Folder Include="Output\" />
20+
</ItemGroup>
21+
22+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<ActiveDebugProfile>Container (Dockerfile)</ActiveDebugProfile>
5+
</PropertyGroup>
6+
</Project>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Base runtime image (root user by default)
2+
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
3+
4+
RUN apt-get update -y && apt-get install fontconfig -y
5+
6+
WORKDIR /app
7+
8+
# Copy fonts from your project folder into the container
9+
COPY ["Copy_fonts_to_linux_containers/Fonts/", "/usr/local/share/fonts/"]
10+
11+
# ------------------ build stage ------------------
12+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
13+
ARG BUILD_CONFIGURATION=Release
14+
WORKDIR /src
15+
16+
COPY ["Copy_fonts_to_linux_containers/Copy_fonts_to_linux_containers.csproj", "Copy_fonts_to_linux_containers/"]
17+
RUN dotnet restore "./Copy_fonts_to_linux_containers/Copy_fonts_to_linux_containers.csproj"
18+
19+
COPY . .
20+
WORKDIR "/src/Copy_fonts_to_linux_containers"
21+
RUN dotnet build "./Copy_fonts_to_linux_containers.csproj" -c $BUILD_CONFIGURATION -o /app/build
22+
23+
# ------------------ publish stage ------------------
24+
FROM build AS publish
25+
ARG BUILD_CONFIGURATION=Release
26+
RUN dotnet publish "./Copy_fonts_to_linux_containers.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
27+
28+
# ------------------ final stage ------------------
29+
FROM base AS final
30+
WORKDIR /app
31+
COPY --from=publish /app/publish .
32+
ENTRYPOINT ["dotnet", "Copy_fonts_to_linux_containers.dll"]

0 commit comments

Comments
 (0)