I have made a asp.net core 2.0 web API. Now I want to create a docker image for this API.
Here is my docker file content -
FROM microsoft/aspnetcore:2.0-nanoserver-1803 AS build-env
WORKDIR /app
FROM microsoft/aspnetcore-build:2.0-nanoserver-1803 AS base
WORKDIR /src
# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out
# Build runtime image
FROM base AS final
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "Microservice_Orders.dll"]
I am running the following command to create an image
docker build -t ms_orders .
But I am getting following error on execution.
******Step 11/12 : COPY --from=build-env /app/out . COPY failed: CreateFile \?\Volume{a3251a00-f8f4-4510-8db2-f495f33ce178}\app\out:
The system cannot find the file specified.******