45 changed files with 783 additions and 7 deletions
@ -0,0 +1,5 @@ |
|||||||
|
{ |
||||||
|
"version": 1, |
||||||
|
"isRoot": true, |
||||||
|
"tools": {} |
||||||
|
} |
@ -0,0 +1,21 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<!-- |
||||||
|
https://go.microsoft.com/fwlink/?LinkID=208121. |
||||||
|
--> |
||||||
|
<Project> |
||||||
|
<PropertyGroup> |
||||||
|
<DeleteExistingFiles>true</DeleteExistingFiles> |
||||||
|
<ExcludeApp_Data>false</ExcludeApp_Data> |
||||||
|
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish> |
||||||
|
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> |
||||||
|
<LastUsedPlatform>Any CPU</LastUsedPlatform> |
||||||
|
<PublishProvider>FileSystem</PublishProvider> |
||||||
|
<PublishUrl>bin\Release\net6.0\publish\</PublishUrl> |
||||||
|
<WebPublishMethod>FileSystem</WebPublishMethod> |
||||||
|
<_TargetId>Folder</_TargetId> |
||||||
|
<SiteUrlToLaunchAfterPublish /> |
||||||
|
<TargetFramework>net6.0</TargetFramework> |
||||||
|
<ProjectGuid>bb831806-197b-4508-9ad5-5d3edb7fca27</ProjectGuid> |
||||||
|
<SelfContained>false</SelfContained> |
||||||
|
</PropertyGroup> |
||||||
|
</Project> |
@ -0,0 +1,11 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<!-- |
||||||
|
https://go.microsoft.com/fwlink/?LinkID=208121. |
||||||
|
--> |
||||||
|
<Project> |
||||||
|
<PropertyGroup> |
||||||
|
<_PublishTargetUrl>C:\Users\callm\source\repos\24Hour.Service\WebApplication1\bin\Release\net6.0\publish\</_PublishTargetUrl> |
||||||
|
<History>True|2023-11-01T10:41:19.1109757Z;True|2023-11-01T18:39:07.4539146+08:00;True|2023-11-01T18:16:01.9167676+08:00;True|2023-11-01T18:15:52.7184209+08:00;</History> |
||||||
|
<LastFailureDetails /> |
||||||
|
</PropertyGroup> |
||||||
|
</Project> |
@ -0,0 +1,26 @@ |
|||||||
|
# 选择从什么镜像基础上创建我们的镜像,相当于选择我们依赖的环境 |
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base |
||||||
|
|
||||||
|
LABEL description="" |
||||||
|
|
||||||
|
LABEL version="1.0" |
||||||
|
|
||||||
|
# 指定工作目录 |
||||||
|
WORKDIR /app |
||||||
|
|
||||||
|
# 把当前目录复制到镜像的 app目录 |
||||||
|
COPY . . |
||||||
|
|
||||||
|
#时区设置 |
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
||||||
|
RUN echo 'Asia/Shanghai' >/etc/timezone |
||||||
|
|
||||||
|
# 暴露的端口 |
||||||
|
#EXPOSE 80 |
||||||
|
EXPOSE 5194 |
||||||
|
|
||||||
|
ENV ASPNETCORE_URLS=http://+:5194 |
||||||
|
ENV ASPNETCORE_ENVIRONMENT Production |
||||||
|
|
||||||
|
# 最后设置启动的dll |
||||||
|
ENTRYPOINT ["dotnet", "WebApplication1.dll"] |
@ -0,0 +1,26 @@ |
|||||||
|
# 选择从什么镜像基础上创建我们的镜像,相当于选择我们依赖的环境 |
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base |
||||||
|
|
||||||
|
LABEL description="" |
||||||
|
|
||||||
|
LABEL version="1.0" |
||||||
|
|
||||||
|
# 指定工作目录 |
||||||
|
WORKDIR /app |
||||||
|
|
||||||
|
# 把当前目录复制到镜像的 app目录 |
||||||
|
COPY . . |
||||||
|
|
||||||
|
#时区设置 |
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
||||||
|
RUN echo 'Asia/Shanghai' >/etc/timezone |
||||||
|
|
||||||
|
# 暴露的端口 |
||||||
|
#EXPOSE 80 |
||||||
|
EXPOSE 5194 |
||||||
|
|
||||||
|
ENV ASPNETCORE_URLS=http://+:5194 |
||||||
|
ENV ASPNETCORE_ENVIRONMENT Production |
||||||
|
|
||||||
|
# 最后设置启动的dll |
||||||
|
ENTRYPOINT ["dotnet", "WebApplication1.dll"] |
@ -0,0 +1,140 @@ |
|||||||
|
{ |
||||||
|
"runtimeTarget": { |
||||||
|
"name": ".NETCoreApp,Version=v6.0", |
||||||
|
"signature": "" |
||||||
|
}, |
||||||
|
"compilationOptions": {}, |
||||||
|
"targets": { |
||||||
|
".NETCoreApp,Version=v6.0": { |
||||||
|
"WebApplication1/1.0.1.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.18.1", |
||||||
|
"Newtonsoft.Json": "13.0.3", |
||||||
|
"Swashbuckle.AspNetCore": "6.0.0" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"WebApplication1.dll": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"runtime": { |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.dll": { |
||||||
|
"assemblyVersion": "1.2.3.0", |
||||||
|
"fileVersion": "1.2.3.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": {}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"runtime": { |
||||||
|
"lib/net6.0/Newtonsoft.Json.dll": { |
||||||
|
"assemblyVersion": "13.0.0.0", |
||||||
|
"fileVersion": "13.0.3.27908" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.Extensions.ApiDescription.Server": "3.0.0", |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI": "6.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.OpenApi": "1.2.3" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"libraries": { |
||||||
|
"WebApplication1/1.0.1.0": { |
||||||
|
"type": "project", |
||||||
|
"serviceable": false, |
||||||
|
"sha512": "" |
||||||
|
}, |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", |
||||||
|
"path": "microsoft.extensions.apidescription.server/3.0.0", |
||||||
|
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", |
||||||
|
"path": "microsoft.openapi/1.2.3", |
||||||
|
"hashPath": "microsoft.openapi.1.2.3.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-RtNQEQQ/bgaxzrsZEkPB+/DFaUgNiq8GtZz/R4lt+mKXPcEvEuawlbl0PB1s7ND9kvkUVZtMphPxE9Ma1VGiFg==", |
||||||
|
"path": "microsoft.visualstudio.azure.containers.tools.targets/1.18.1", |
||||||
|
"hashPath": "microsoft.visualstudio.azure.containers.tools.targets.1.18.1.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", |
||||||
|
"path": "newtonsoft.json/13.0.3", |
||||||
|
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-VxukQYrUrxNUWQocOxmxua/4fZOPBdGCLSaoZYRNthZae0UXB+fzjTBTlj24fZEQrP+QTnsRwSygN9jNBqm/hg==", |
||||||
|
"path": "swashbuckle.aspnetcore/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-onkGK5eDFmyNy605E5ZaT5oXEGsQJz2UEKsUOqYCZRBC2Fi6MbByUl+qznyl3pZ9/4nTvukUjt9+v28qvJPk/Q==", |
||||||
|
"path": "swashbuckle.aspnetcore.swagger/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swagger.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-RXY21STD/yo4Uzy1L5GoRrEQQWoOosw0QBYo572VwcjePmpV1yFFHsTeThlMNBWKoTt6xadIdSjZj0FmDFYL2A==", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggergen/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-VusRaCFt2As3SXBJmUOGA40IGr6ao+vsvDi7jbCS4AFx69kUUm8zxIHeJVqGov3w4lQowVxv8gmonRXDRh1FvQ==", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggerui/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swaggerui.6.0.0.nupkg.sha512" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
{ |
||||||
|
"runtimeOptions": { |
||||||
|
"tfm": "net6.0", |
||||||
|
"frameworks": [ |
||||||
|
{ |
||||||
|
"name": "Microsoft.NETCore.App", |
||||||
|
"version": "6.0.0" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "Microsoft.AspNetCore.App", |
||||||
|
"version": "6.0.0" |
||||||
|
} |
||||||
|
], |
||||||
|
"configProperties": { |
||||||
|
"System.GC.Server": true, |
||||||
|
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false, |
||||||
|
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,8 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
"AllowedHosts": "*", |
||||||
|
"Configs": { |
||||||
|
"SystemIp": "143.120.5.25", |
||||||
|
"Port": "8080" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,26 @@ |
|||||||
|
# 选择从什么镜像基础上创建我们的镜像,相当于选择我们依赖的环境 |
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base |
||||||
|
|
||||||
|
LABEL description="" |
||||||
|
|
||||||
|
LABEL version="1.0" |
||||||
|
|
||||||
|
# 指定工作目录 |
||||||
|
WORKDIR /app |
||||||
|
|
||||||
|
# 把当前目录复制到镜像的 app目录 |
||||||
|
COPY . . |
||||||
|
|
||||||
|
#时区设置 |
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
||||||
|
RUN echo 'Asia/Shanghai' >/etc/timezone |
||||||
|
|
||||||
|
# 暴露的端口 |
||||||
|
#EXPOSE 80 |
||||||
|
EXPOSE 5194 |
||||||
|
|
||||||
|
ENV ASPNETCORE_URLS=http://+:5194 |
||||||
|
ENV ASPNETCORE_ENVIRONMENT Production |
||||||
|
|
||||||
|
# 最后设置启动的dll |
||||||
|
ENTRYPOINT ["dotnet", "WebApplication1.dll"] |
@ -0,0 +1,140 @@ |
|||||||
|
{ |
||||||
|
"runtimeTarget": { |
||||||
|
"name": ".NETCoreApp,Version=v6.0", |
||||||
|
"signature": "" |
||||||
|
}, |
||||||
|
"compilationOptions": {}, |
||||||
|
"targets": { |
||||||
|
".NETCoreApp,Version=v6.0": { |
||||||
|
"WebApplication1/1.0.1.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.18.1", |
||||||
|
"Newtonsoft.Json": "13.0.3", |
||||||
|
"Swashbuckle.AspNetCore": "6.0.0" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"WebApplication1.dll": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"runtime": { |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.dll": { |
||||||
|
"assemblyVersion": "1.2.3.0", |
||||||
|
"fileVersion": "1.2.3.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": {}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"runtime": { |
||||||
|
"lib/net6.0/Newtonsoft.Json.dll": { |
||||||
|
"assemblyVersion": "13.0.0.0", |
||||||
|
"fileVersion": "13.0.3.27908" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.Extensions.ApiDescription.Server": "3.0.0", |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI": "6.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.OpenApi": "1.2.3" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"libraries": { |
||||||
|
"WebApplication1/1.0.1.0": { |
||||||
|
"type": "project", |
||||||
|
"serviceable": false, |
||||||
|
"sha512": "" |
||||||
|
}, |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", |
||||||
|
"path": "microsoft.extensions.apidescription.server/3.0.0", |
||||||
|
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", |
||||||
|
"path": "microsoft.openapi/1.2.3", |
||||||
|
"hashPath": "microsoft.openapi.1.2.3.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-RtNQEQQ/bgaxzrsZEkPB+/DFaUgNiq8GtZz/R4lt+mKXPcEvEuawlbl0PB1s7ND9kvkUVZtMphPxE9Ma1VGiFg==", |
||||||
|
"path": "microsoft.visualstudio.azure.containers.tools.targets/1.18.1", |
||||||
|
"hashPath": "microsoft.visualstudio.azure.containers.tools.targets.1.18.1.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", |
||||||
|
"path": "newtonsoft.json/13.0.3", |
||||||
|
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-VxukQYrUrxNUWQocOxmxua/4fZOPBdGCLSaoZYRNthZae0UXB+fzjTBTlj24fZEQrP+QTnsRwSygN9jNBqm/hg==", |
||||||
|
"path": "swashbuckle.aspnetcore/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-onkGK5eDFmyNy605E5ZaT5oXEGsQJz2UEKsUOqYCZRBC2Fi6MbByUl+qznyl3pZ9/4nTvukUjt9+v28qvJPk/Q==", |
||||||
|
"path": "swashbuckle.aspnetcore.swagger/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swagger.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-RXY21STD/yo4Uzy1L5GoRrEQQWoOosw0QBYo572VwcjePmpV1yFFHsTeThlMNBWKoTt6xadIdSjZj0FmDFYL2A==", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggergen/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-VusRaCFt2As3SXBJmUOGA40IGr6ao+vsvDi7jbCS4AFx69kUUm8zxIHeJVqGov3w4lQowVxv8gmonRXDRh1FvQ==", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggerui/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swaggerui.6.0.0.nupkg.sha512" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
{ |
||||||
|
"runtimeOptions": { |
||||||
|
"tfm": "net6.0", |
||||||
|
"frameworks": [ |
||||||
|
{ |
||||||
|
"name": "Microsoft.NETCore.App", |
||||||
|
"version": "6.0.0" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "Microsoft.AspNetCore.App", |
||||||
|
"version": "6.0.0" |
||||||
|
} |
||||||
|
], |
||||||
|
"configProperties": { |
||||||
|
"System.GC.Server": true, |
||||||
|
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false, |
||||||
|
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,8 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
"AllowedHosts": "*", |
||||||
|
"Configs": { |
||||||
|
"SystemIp": "143.120.5.25", |
||||||
|
"Port": "8080" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<configuration> |
||||||
|
<location path="." inheritInChildApplications="false"> |
||||||
|
<system.webServer> |
||||||
|
<handlers> |
||||||
|
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> |
||||||
|
</handlers> |
||||||
|
<aspNetCore processPath="dotnet" arguments=".\WebApplication1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" /> |
||||||
|
</system.webServer> |
||||||
|
</location> |
||||||
|
</configuration> |
||||||
|
<!--ProjectGuid: bb831806-197b-4508-9ad5-5d3edb7fca27--> |
@ -0,0 +1 @@ |
|||||||
|
Unknown |
@ -0,0 +1,26 @@ |
|||||||
|
# 选择从什么镜像基础上创建我们的镜像,相当于选择我们依赖的环境 |
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base |
||||||
|
|
||||||
|
LABEL description="" |
||||||
|
|
||||||
|
LABEL version="1.0" |
||||||
|
|
||||||
|
# 指定工作目录 |
||||||
|
WORKDIR /app |
||||||
|
|
||||||
|
# 把当前目录复制到镜像的 app目录 |
||||||
|
COPY . . |
||||||
|
|
||||||
|
#时区设置 |
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
||||||
|
RUN echo 'Asia/Shanghai' >/etc/timezone |
||||||
|
|
||||||
|
# 暴露的端口 |
||||||
|
#EXPOSE 80 |
||||||
|
EXPOSE 5194 |
||||||
|
|
||||||
|
ENV ASPNETCORE_URLS=http://+:5194 |
||||||
|
ENV ASPNETCORE_ENVIRONMENT Production |
||||||
|
|
||||||
|
# 最后设置启动的dll |
||||||
|
ENTRYPOINT ["dotnet", "WebApplication1.dll"] |
@ -0,0 +1,140 @@ |
|||||||
|
{ |
||||||
|
"runtimeTarget": { |
||||||
|
"name": ".NETCoreApp,Version=v6.0", |
||||||
|
"signature": "" |
||||||
|
}, |
||||||
|
"compilationOptions": {}, |
||||||
|
"targets": { |
||||||
|
".NETCoreApp,Version=v6.0": { |
||||||
|
"WebApplication1/1.0.1.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.18.1", |
||||||
|
"Newtonsoft.Json": "13.0.3", |
||||||
|
"Swashbuckle.AspNetCore": "6.0.0" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"WebApplication1.dll": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"runtime": { |
||||||
|
"lib/netstandard2.0/Microsoft.OpenApi.dll": { |
||||||
|
"assemblyVersion": "1.2.3.0", |
||||||
|
"fileVersion": "1.2.3.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": {}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"runtime": { |
||||||
|
"lib/net6.0/Newtonsoft.Json.dll": { |
||||||
|
"assemblyVersion": "13.0.0.0", |
||||||
|
"fileVersion": "13.0.3.27908" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.Extensions.ApiDescription.Server": "3.0.0", |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen": "6.0.0", |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI": "6.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Microsoft.OpenApi": "1.2.3" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"dependencies": { |
||||||
|
"Swashbuckle.AspNetCore.Swagger": "6.0.0" |
||||||
|
}, |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"runtime": { |
||||||
|
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { |
||||||
|
"assemblyVersion": "6.0.0.0", |
||||||
|
"fileVersion": "6.0.0.0" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"libraries": { |
||||||
|
"WebApplication1/1.0.1.0": { |
||||||
|
"type": "project", |
||||||
|
"serviceable": false, |
||||||
|
"sha512": "" |
||||||
|
}, |
||||||
|
"Microsoft.Extensions.ApiDescription.Server/3.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", |
||||||
|
"path": "microsoft.extensions.apidescription.server/3.0.0", |
||||||
|
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Microsoft.OpenApi/1.2.3": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", |
||||||
|
"path": "microsoft.openapi/1.2.3", |
||||||
|
"hashPath": "microsoft.openapi.1.2.3.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-RtNQEQQ/bgaxzrsZEkPB+/DFaUgNiq8GtZz/R4lt+mKXPcEvEuawlbl0PB1s7ND9kvkUVZtMphPxE9Ma1VGiFg==", |
||||||
|
"path": "microsoft.visualstudio.azure.containers.tools.targets/1.18.1", |
||||||
|
"hashPath": "microsoft.visualstudio.azure.containers.tools.targets.1.18.1.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Newtonsoft.Json/13.0.3": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", |
||||||
|
"path": "newtonsoft.json/13.0.3", |
||||||
|
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-VxukQYrUrxNUWQocOxmxua/4fZOPBdGCLSaoZYRNthZae0UXB+fzjTBTlj24fZEQrP+QTnsRwSygN9jNBqm/hg==", |
||||||
|
"path": "swashbuckle.aspnetcore/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-onkGK5eDFmyNy605E5ZaT5oXEGsQJz2UEKsUOqYCZRBC2Fi6MbByUl+qznyl3pZ9/4nTvukUjt9+v28qvJPk/Q==", |
||||||
|
"path": "swashbuckle.aspnetcore.swagger/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swagger.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-RXY21STD/yo4Uzy1L5GoRrEQQWoOosw0QBYo572VwcjePmpV1yFFHsTeThlMNBWKoTt6xadIdSjZj0FmDFYL2A==", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggergen/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.0.0.nupkg.sha512" |
||||||
|
}, |
||||||
|
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||||
|
"type": "package", |
||||||
|
"serviceable": true, |
||||||
|
"sha512": "sha512-VusRaCFt2As3SXBJmUOGA40IGr6ao+vsvDi7jbCS4AFx69kUUm8zxIHeJVqGov3w4lQowVxv8gmonRXDRh1FvQ==", |
||||||
|
"path": "swashbuckle.aspnetcore.swaggerui/6.0.0", |
||||||
|
"hashPath": "swashbuckle.aspnetcore.swaggerui.6.0.0.nupkg.sha512" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
{ |
||||||
|
"runtimeOptions": { |
||||||
|
"tfm": "net6.0", |
||||||
|
"frameworks": [ |
||||||
|
{ |
||||||
|
"name": "Microsoft.NETCore.App", |
||||||
|
"version": "6.0.0" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "Microsoft.AspNetCore.App", |
||||||
|
"version": "6.0.0" |
||||||
|
} |
||||||
|
], |
||||||
|
"configProperties": { |
||||||
|
"System.GC.Server": true, |
||||||
|
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false, |
||||||
|
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,8 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
{ |
||||||
|
"Logging": { |
||||||
|
"LogLevel": { |
||||||
|
"Default": "Information", |
||||||
|
"Microsoft.AspNetCore": "Warning" |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
"AllowedHosts": "*", |
||||||
|
"Configs": { |
||||||
|
"SystemIp": "143.120.5.25", |
||||||
|
"Port": "8080" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<configuration> |
||||||
|
<location path="." inheritInChildApplications="false"> |
||||||
|
<system.webServer> |
||||||
|
<handlers> |
||||||
|
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> |
||||||
|
</handlers> |
||||||
|
<aspNetCore processPath="dotnet" arguments=".\WebApplication1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" /> |
||||||
|
</system.webServer> |
||||||
|
</location> |
||||||
|
</configuration> |
||||||
|
<!--ProjectGuid: bb831806-197b-4508-9ad5-5d3edb7fca27--> |
@ -0,0 +1,17 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码由工具生成。 |
||||||
|
// 运行时版本:4.0.30319.42000 |
||||||
|
// |
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果 |
||||||
|
// 重新生成代码,这些更改将会丢失。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Reflection; |
||||||
|
|
||||||
|
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")] |
||||||
|
|
||||||
|
// 由 MSBuild WriteCodeFragment 类生成。 |
||||||
|
|
@ -0,0 +1 @@ |
|||||||
|
1aab1d47053209a50c128993feed61e455baf1b5 |
@ -0,0 +1 @@ |
|||||||
|
047f5fe97a60ada4b377c341b4057c1add75bb62 |
@ -0,0 +1,11 @@ |
|||||||
|
{ |
||||||
|
"Version": 1, |
||||||
|
"Hash": "ozPU8KMwOlbQHpcE5qZTZ7CirEa+BWCC4ogaz+QJEsE=", |
||||||
|
"Source": "WebApplication1", |
||||||
|
"BasePath": "_content/WebApplication1", |
||||||
|
"Mode": "Default", |
||||||
|
"ManifestType": "Build", |
||||||
|
"ReferencedProjectsConfiguration": [], |
||||||
|
"DiscoveryPatterns": [], |
||||||
|
"Assets": [] |
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
{ |
||||||
|
"Version": 1, |
||||||
|
"Hash": "EB1soTy2l+MyQgOt5BLTkE/eVrf3EMSDyjw4yCBW4Fw=", |
||||||
|
"Source": "WebApplication1", |
||||||
|
"BasePath": "_content/WebApplication1", |
||||||
|
"Mode": "Default", |
||||||
|
"ManifestType": "Publish", |
||||||
|
"ReferencedProjectsConfiguration": [], |
||||||
|
"DiscoveryPatterns": [], |
||||||
|
"Assets": [] |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
<Project> |
||||||
|
<Import Project="Microsoft.AspNetCore.StaticWebAssets.props" /> |
||||||
|
</Project> |
@ -0,0 +1,3 @@ |
|||||||
|
<Project> |
||||||
|
<Import Project="..\build\WebApplication1.props" /> |
||||||
|
</Project> |
@ -0,0 +1,3 @@ |
|||||||
|
<Project> |
||||||
|
<Import Project="..\buildMultiTargeting\WebApplication1.props" /> |
||||||
|
</Project> |
Loading…
Reference in new issue