Commit c5070e41 by shipengwei

Merge branch 'master' of git.aipark.com:eoc-group/dotnet-cicd-demo

parents a3002c1e 6122500c
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim AS base FROM mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim AS base
USER $APP_UID USER $APP_UID
WORKDIR /app WORKDIR /app
EXPOSE 8080 EXPOSE 80
EXPOSE 443
# 此阶段用于生成服务项目 # 此阶段用于生成服务项目
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim AS build FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim AS build
......
...@@ -8,7 +8,7 @@ namespace DotNetCicdDemo ...@@ -8,7 +8,7 @@ namespace DotNetCicdDemo
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
// Add services to the container. // Add services to the container.
builder.WebHost.UseUrls("http://*"); //builder.WebHost.UseUrls("http://*");
builder.Services.AddControllers(); builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment