This commit is contained in:
kamonwan taengsuk
2023-08-02 14:31:28 +07:00
parent 56430a5db4
commit 54a10be954
17 changed files with 71 additions and 39 deletions

View File

@@ -1,11 +1,11 @@
FROM registry.71dev.com/dotnetsdk:3.1 as build-env
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-env
WORKDIR /source
COPY . .
RUN dotnet restore --configfile nuget.config
RUN dotnet build
RUN dotnet publish -o /publish --configuration Release;
FROM registry.71dev.com/dotnetsdk:3.1
FROM mcr.microsoft.com/dotnet/sdk:5.0
COPY . .
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y fontconfig
@@ -20,4 +20,4 @@ RUN fc-cache -fv
WORKDIR /app
COPY --from=build-env /publish .
ENV ASPNETCORE_URLS http://*:8080
ENTRYPOINT ["dotnet", "rmutr_report.dll"]
ENTRYPOINT ["dotnet", "rmutr_report.dll"]