-o / publish /'返回了非零代码:1

时间:2018-12-14 08:41:36

标签: dockerfile

下面是我的Dockerfile。

FROM microsoft/aspnetcore-build as build-image

WORKDIR /home/app

COPY *.sln ./
COPY ./*/*.csproj ./
RUN for file in $(ls *.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done

RUN dotnet restore

COPY . .

RUN dotnet publish ./SampleProj -o /publish/

WORKDIR /publish

ENTRYPOINT ["dotnet", "SampleProj.dll"]

我收到错误消息-o / publish /,返回了非零代码:1。

0 个答案:

没有答案