Add Report V2 เพื่อทดสอบการสสร้างตัว generate report ด้วย dotnet 6
This commit is contained in:
parent
c179b14839
commit
63403121ae
220 changed files with 3105 additions and 483 deletions
43
BMA.EHR.ReportV2.Service/Dockerfile
Normal file
43
BMA.EHR.ReportV2.Service/Dockerfile
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
#COPY ["BMA.EHR.Domain/BMA.EHR.Domain.csproj", "BMA.EHR.Domain/"]
|
||||
#COPY ["BMA.EHR.Application/BMA.EHR.Application.csproj", "BMA.EHR.Application/"]
|
||||
#COPY ["BMA.EHR.Infrastructure/BMA.EHR.Infrastructure.csproj", "BMA.EHR.Infrastructure/"]
|
||||
COPY ["BMA.EHR.ReportGenerator/BMA.EHR.ReportGenerator.csproj", "BMA.EHR.ReportGenerator/"]
|
||||
COPY ["BMA.EHR.ReportV2.Service/BMA.EHR.ReportV2.Service.csproj", "BMA.EHR.ReportV2.Service/"]
|
||||
|
||||
COPY ./BMA.EHR.ReportGenerator/Components ./BMA.EHR.ReportGenerator/Components
|
||||
COPY ./BMA.EHR.ReportGenerator/nuget.config ./BMA.EHR.ReportGenerator/
|
||||
|
||||
RUN dotnet restore "BMA.EHR.ReportGenerator/BMA.EHR.ReportGenerator.csproj"
|
||||
|
||||
RUN dotnet restore "BMA.EHR.ReportV2.Service/BMA.EHR.ReportV2.Service.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/BMA.EHR.ReportV2.Service"
|
||||
RUN dotnet build "BMA.EHR.ReportV2.Service.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "BMA.EHR.ReportV2.Service.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
|
||||
RUN apt-get update && apt-get -y install fontconfig && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev && rm -rf /var/lib/apt/lists/*
|
||||
COPY ./BMA.EHR.Report.Service/Fonts/THSarabunIT.ttf /usr/share/fonts/truetype/
|
||||
COPY ./BMA.EHR.Report.Service/Fonts/THSarabunITBold.ttf /usr/share/fonts/truetype/
|
||||
COPY ./BMA.EHR.Report.Service/Fonts/THSarabunITItalic.ttf /usr/share/fonts/truetype/
|
||||
COPY ./BMA.EHR.Report.Service/Fonts/THSarabunITBoldItalic.ttf /usr/share/fonts/truetype/
|
||||
COPY ./BMA.EHR.Report.Service/Fonts/THSarabunNew.ttf /usr/share/fonts/truetype/
|
||||
COPY ./BMA.EHR.Report.Service/Fonts/THSarabunNewBold.ttf /usr/share/fonts/truetype/
|
||||
COPY ./BMA.EHR.Report.Service/Fonts/THSarabunNewItalic.ttf /usr/share/fonts/truetype/
|
||||
COPY ./BMA.EHR.Report.Service/Fonts/THSarabunNewBoldItalic.ttf /usr/share/fonts/truetype/
|
||||
RUN fc-cache -f -v
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "BMA.EHR.ReportV2.Service.dll"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue