UI
Some checks failed
Tech / explore-gitea-actions (push) Has been cancelled

This commit is contained in:
SpecialX
2025-08-31 11:29:26 +08:00
parent 017cc2169c
commit c59762a392
65 changed files with 3996 additions and 330 deletions

View File

@@ -0,0 +1,26 @@
# 构建阶段
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS client
#COPY --from=entitieslib:latest /publish /publish/entities
#COPY --from=emaillib:latest /publish /publish/emaillib
WORKDIR /app
# 复制依赖文件 & 恢复
#COPY ./TechHelper.Client.sln ./
COPY ../TechHelper.Client/*.csproj ../TechHelper.Client/
RUN dotnet nuget locals all --clear
RUN dotnet restore "/app/TechHelper.Client/TechHelper.Client.csproj"
# 复制代码 & 发布
COPY . ./
WORKDIR /app/TechHelper.Client
RUN dotnet publish "/app/TechHelper.Client/TechHelper.Client.csproj" -c Release -o /publish
FROM nginx:alpine AS final
RUN rm -rf /usr/share/nginx/html
COPY --from=client /publish/wwwroot /usr/share/nginx/html
EXPOSE 80