Good day guys,
I'm new with docker and I want to containerized my ASP.NET Core App but an error shows and I can't continue building my image
Here's my sample Dockerfile
FROM microsoft/dotnet:latest
COPY . /app
WORKDIR /app/MyWebApp
RUN dotnet build
RUN dotnet publish -c Release -o out
FROM microsoft/dotnet:2.1-aspnetcore-runtime
EXPOSE 80
WORKDIR /app
COPY ${source:-MyWebApp/out} .
ENTRYPOINT ["dotnet", "MyWebApp.dll"]
I've reached all steps except the last 2 steps at the end. The error says,
"Copy failed: stat /var/lib/docker/tmp/docker-builder___/MyWebApp/out: no such file or directory"