From 4e94e7bf91411a0f523c091069738d5d439239ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Tue, 8 Oct 2024 15:28:22 +0800 Subject: [PATCH] =?UTF-8?q?8082=3D=E3=80=8B8081?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- New_College.Api/Dockerfile | 2 +- New_College.Api/Dockerfile.original | 2 +- New_College.Api/appsettings.Development.json | 2 +- New_College.Api/start.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/New_College.Api/Dockerfile b/New_College.Api/Dockerfile index 01e7886..70acccb 100644 --- a/New_College.Api/Dockerfile +++ b/New_College.Api/Dockerfile @@ -35,5 +35,5 @@ RUN dotnet publish -c release -o /app --no-restore -f net6.0 FROM mcr.microsoft.com/dotnet/aspnet:6.0 WORKDIR /app COPY --from=build /app ./ -EXPOSE 8082 +EXPOSE 8081 ENTRYPOINT ["dotnet", "New_College.Api.dll","-b","0.0.0.0"] diff --git a/New_College.Api/Dockerfile.original b/New_College.Api/Dockerfile.original index f2efb7e..71256d8 100644 --- a/New_College.Api/Dockerfile.original +++ b/New_College.Api/Dockerfile.original @@ -32,5 +32,5 @@ RUN echo 'Asia/Shanghai' >/etc/timezone #&& supervisord -c /etc/supervisord.conf WORKDIR /app COPY . . -EXPOSE 8082 +EXPOSE 8081 ENTRYPOINT ["dotnet", "New_College.Api.dll","-b","0.0.0.0"] \ No newline at end of file diff --git a/New_College.Api/appsettings.Development.json b/New_College.Api/appsettings.Development.json index 77d1b25..535c245 100644 --- a/New_College.Api/appsettings.Development.json +++ b/New_College.Api/appsettings.Development.json @@ -26,7 +26,7 @@ "Name": "New_College" } }, - "urls": "http://*:8082", // IIS 部署,注释掉 + "urls": "http://*:8081", // IIS 部署,注释掉 "AllowedHosts": "*", "AppSettings": { "RedisCachingAOP": { diff --git a/New_College.Api/start.sh b/New_College.Api/start.sh index 32e18cf..955282c 100644 --- a/New_College.Api/start.sh +++ b/New_College.Api/start.sh @@ -38,7 +38,7 @@ docker build --no-cache --build-arg GIT_USERNAME="${GIT_USERNAME}" --build-ar # Æô¶¯ÐµÄÈÝÆ÷ echo "Starting new container ${CONTAINER_NAME}..." docker run \ - -p 8082:8082 \ + -p 8081:8081 \ -v /var/www/wwwroot:/app/wwwroot \ --restart unless-stopped \ --name "${CONTAINER_NAME}" \