i have a command line arguments accepting console application whose code i have to execute in docker. Now, the console application code uses directory which is one level behind my console application directory,so for that i have made a docker file which would copy current directory content as well as the content of whole directory one level behind ("../."). But when i do docker run i get error saying directory does not exist from my console application side. Can anyone help me out with this? is there any other way to include whole directory with subfiles and subdirectory?
Docker file code:
` FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
WORKDIR /app
COPY . /app
copy ../ /app
RUN dotnet restore
RUN dotnet build -c Release
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "ConsoleApp3.dll","localhost","","root","","nocodeproductdb","","","NoCodeAppAPI","YES","3306","amqp://guest:guest@127.0.0.1/","ReactTs","DotNet"] `