8082=》8081

develop
old易 2024-10-08 15:28:22 +08:00
parent a08e92725d
commit 4e94e7bf91
4 changed files with 4 additions and 4 deletions

View File

@ -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"]

View File

@ -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"]

View File

@ -26,7 +26,7 @@
"Name": "New_College"
}
},
"urls": "http://*:8082", // IIS
"urls": "http://*:8081", // IIS
"AllowedHosts": "*",
"AppSettings": {
"RedisCachingAOP": {

View File

@ -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}" \