From a810a481583279d2f6b6dbad463e19cad4e01d7d Mon Sep 17 00:00:00 2001 From: Kimdiego2098 <2248356998@qq.com> Date: Fri, 2 Feb 2024 08:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ThingsGateway.Web.Entry/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ThingsGateway.Web.Entry/Dockerfile b/src/ThingsGateway.Web.Entry/Dockerfile index 74ff1d15a..4c9e69288 100644 --- a/src/ThingsGateway.Web.Entry/Dockerfile +++ b/src/ThingsGateway.Web.Entry/Dockerfile @@ -1,10 +1,13 @@ #See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. +#aspnetcore6.0环境 FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base COPY . /app WORKDIR /app -EXPOSE 80 -#linux安装 +EXPOSE 7200 +#图像库 RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ sid main contrib non-free" > /etc/apt/sources.list RUN apt-get update && apt-get -y install libfontconfig1 -ENTRYPOINT ["dotnet", "ThingsGateway.Web.Server.dll","--urls","http://*:7200"] \ No newline at end of file + +#7200端口 +ENTRYPOINT ["dotnet", "ThingsGateway.Web.Entry.dll","--urls","http://*:7200"] \ No newline at end of file