Basically I created an asp.net mvc project. I added a Dockerfile in the project folder.
FROM microsoft/aspnet:1.0.0-rc1-update1
ADD . /app
WORKDIR /app/approot
EXPOSE 5004
ENTRYPOINT ["./web"]
Now I open Docker Quickstart Terminal on my Windows desktop. Running the command
docker build -t hellodocker:0.1.0 .
However I can't find the image when I run it.
So what is wrong?
EDIT
Thanks for the comment, I correct the typo. But there is an another error.
EDIT-1
If I change the ENTRYPOINT as ENTRYPOINT ["dnx", "-p", "project.json", "web"]
Then I get another error:
Unable to reslolve project from /app/approot
EDIT-2
Your project is being added to the image as /app
. So, in the container, the project.json
lives at /app/project.json
. But your WORKDIR
is set to /app/approot
.
This effectively makes your ENTRYPOINT
looking for project.json
at /app/approot
, which it does not exist. You'll either need to change WORKDIR
to /app
or COPY . /app/approot
.