0

If I build my docker file using cmd

docker build -t myimage -f Dockerfile. getting this error. unable to prepare context: unable to evaluate symlinks in the Dockerfile path: CreateFile F:\Docker\demo\Dockerfile: The system cannot find the file specified.

Yaser Darzi
  • 1,480
  • 12
  • 24

1 Answers1

0

Dockerfile should contain

FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build WORKDIR /app

COPY app/bin/Release/netcoreapp3.0/publish/ app/

ENTRYPOINT ["dotnet", "app/myapp.dll"]

dockerfile extension has to be given as shown while running from powershell

docker build -t myimage -f Dockerfile.txt .

Community
  • 1
  • 1