build(#I15JR7): 修复 docker 编译失败问题

#Comment
编译环境中未启用空检查

#Issue
close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I15JR7
This commit is contained in:
Argo Zhang 2019-11-24 11:01:09 +08:00
parent 970e7ff741
commit e1c7c3fff3
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 4 additions and 4 deletions

View File

@ -7,9 +7,9 @@ EXPOSE 80
FROM microsoft/dotnet:3.0-sdk-nanoserver-1903 AS build
WORKDIR /src
COPY src/admin .
COPY . .
WORKDIR "/src/Bootstrap.Admin"
WORKDIR "src/admin/Bootstrap.Admin"
FROM build AS publish
RUN dotnet publish -c Release -o /app

View File

@ -7,9 +7,9 @@ EXPOSE 80
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build
WORKDIR /src
COPY src/admin .
COPY . .
WORKDIR "/src/Bootstrap.Admin"
WORKDIR "src/admin/Bootstrap.Admin"
FROM build AS publish
RUN dotnet publish -c Release -o /app