我的Docker文件是:
FROM microsoft/aspnet
COPY . /app
WORKDIR /app
RUN ["dnu", "restore"]
EXPOSE 5004
ENTRYPOINT ["dnx", "project.json", "kestrel"]
我的Docker文件有什么问题吗?
以下是回复:
Restore failed
A task was canceled.
NuGet Config files used:
/root/.config/NuGet/NuGet.Config
Feeds used:
https://www.nuget.org/api/v2/
The command 'dnu restore' returned a non-zero code: 1
答案 0 :(得分:1)
Docker文件需要更新如下,然后ok for build:
FROM microsoft/aspnet:1.0.0-beta4
ADD . /app
WORKDIR /app
RUN ["dnu", "restore"]
EXPOSE 5004
ENTRYPOINT ["dnx", "./src/HelloMvc6", "kestrel"]