update dockerfile

This commit is contained in:
wintel 2024-11-16 11:39:18 +08:00
parent fe42824a03
commit fd8da78c43

View File

@ -10,10 +10,11 @@ COPY ["OpenAuth.WebApi/", "./OpenAuth.WebApi/"]
COPY ["Infrastructure/", "./Infrastructure/"] COPY ["Infrastructure/", "./Infrastructure/"]
COPY ["OpenAuth.App/", "./OpenAuth.App/"] COPY ["OpenAuth.App/", "./OpenAuth.App/"]
COPY ["OpenAuth.Repository/", "./OpenAuth.Repository/"] COPY ["OpenAuth.Repository/", "./OpenAuth.Repository/"]
RUN dotnet restore
# 发布 # 发布
WORKDIR "/src/OpenAuth.WebApi" WORKDIR "/src/OpenAuth.WebApi"
RUN dotnet restore
FROM build AS publish FROM build AS publish
RUN dotnet publish -c Release -o /app/publish RUN dotnet publish -c Release -o /app/publish