Skip to content

Commit

Permalink
865325-sampleNet8
Browse files Browse the repository at this point in the history
  • Loading branch information
SaravanaPriya31 authored and SaravanaPriya31 committed Jan 24, 2024
1 parent b3033fa commit f23ee92
Show file tree
Hide file tree
Showing 28 changed files with 724 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ ENV REDIS_CACHE_CONNECTION_STRING=""
ENV DOCUMENT_PATH=""
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /source
COPY ["src/ej2-pdfviewer-server/ej2-pdfviewer-server.csproj", "./ej2-pdfviewer-server/ej2-pdfviewer-server.csproj"]
COPY ["PdfViewer-Server-Net60/ej2-pdfviewer-server/ej2-pdfviewer-server.csproj", "./ej2-pdfviewer-server/ej2-pdfviewer-server.csproj"]
RUN dotnet restore "./ej2-pdfviewer-server/ej2-pdfviewer-server.csproj"
COPY . .
WORKDIR "/source/src"
WORKDIR "/source/PdfViewer-Server-Net60"
RUN dotnet build -c Release -o /app

FROM build AS publish
Expand Down
31 changes: 31 additions & 0 deletions Dockerfile_NET80
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
RUN ln -s /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libdl.so

# install System.Drawing native dependencies
RUN apt-get update && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev
RUN ln -s libgdiplus.so gdiplus.dll

WORKDIR /app
EXPOSE 80
EXPOSE 443
ENV SYNCFUSION_LICENSE_KEY=""
ENV DOCUMENT_SLIDING_EXPIRATION_TIME="10"
ENV REDIS_CACHE_CONNECTION_STRING=""
ENV DOCUMENT_PATH=""

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /source
COPY ["PdfViewer-Server-Net80/ej2-pdfviewer-server/ej2-pdfviewer-server-net80.csproj", "./ej2-pdfviewer-server/ej2-pdfviewer-server-net80.csproj"]
RUN dotnet restore "./ej2-pdfviewer-server/ej2-pdfviewer-server-net80.csproj"
COPY . .
WORKDIR "/source/PdfViewer-Server-Net80"
RUN dotnet build -c Release -o /app

FROM build AS publish
RUN dotnet publish -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "ej2-pdfviewer-server-net80.dll"]

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions PdfViewer-Server-Net80/ej2-pdfviewer-server-net80.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34219.65
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ej2-pdfviewer-server-net80", "ej2-pdfviewer-server\ej2-pdfviewer-server-net80.csproj", "{46A9A5A2-528C-4237-A072-4F2D10D2AD3C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Release-Xml|Any CPU = Release-Xml|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{46A9A5A2-528C-4237-A072-4F2D10D2AD3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{46A9A5A2-528C-4237-A072-4F2D10D2AD3C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{46A9A5A2-528C-4237-A072-4F2D10D2AD3C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{46A9A5A2-528C-4237-A072-4F2D10D2AD3C}.Release|Any CPU.Build.0 = Release|Any CPU
{46A9A5A2-528C-4237-A072-4F2D10D2AD3C}.Release-Xml|Any CPU.ActiveCfg = Release|Any CPU
{46A9A5A2-528C-4237-A072-4F2D10D2AD3C}.Release-Xml|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {41CFE68F-1559-45EF-A600-C56DCE8C33FA}
EndGlobalSection
EndGlobal
Loading

0 comments on commit f23ee92

Please sign in to comment.