From b7ebad03d0d675dda00a3428c13b70f6c5db6189 Mon Sep 17 00:00:00 2001 From: "YUN-PC5\\user" Date: Fri, 27 Oct 2023 16:36:48 +0800 Subject: [PATCH] =?UTF-8?q?Dockerfile=E6=B7=BB=E5=8A=A0=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=91=BD=E4=BB=A4=E8=A7=A3=E5=86=B3Exception?= =?UTF-8?q?=20has=20been=20thrown=20by=20the=20target=20of=20an=20invocati?= =?UTF-8?q?on.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Admin.WebApi/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ZR.Admin.WebApi/Dockerfile b/ZR.Admin.WebApi/Dockerfile index a33c196..edc8210 100644 --- a/ZR.Admin.WebApi/Dockerfile +++ b/ZR.Admin.WebApi/Dockerfile @@ -1,7 +1,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app -EXPOSE 80 -EXPOSE 443 +EXPOSE 8888 +#EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src @@ -27,3 +27,4 @@ FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "ZR.Admin.WebApi.dll"] +RUN apt-get update && apt-get install -y libfontconfig1 \ No newline at end of file