1

My Docker file is :

FROM microsoft/aspnet
COPY . /app
WORKDIR /app
RUN ["dnu", "restore"]
EXPOSE 5004
ENTRYPOINT ["dnx", "project.json", "kestrel"]

Has anything wrong in my Docker file?

Below are response:

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
BMW
  • 42,880
  • 12
  • 99
  • 116
Ray
  • 215
  • 1
  • 4
  • 12

1 Answers1

1

Docker file need updated as below, then ok for build:

FROM microsoft/aspnet:1.0.0-beta4
ADD . /app
WORKDIR /app
RUN ["dnu", "restore"]

EXPOSE 5004
ENTRYPOINT ["dnx", "./src/HelloMvc6", "kestrel"]
Thomasleveil
  • 95,867
  • 15
  • 119
  • 113
Ray
  • 215
  • 1
  • 4
  • 12