Search code examples
dockerdlldockerfile

Can't copy built project .dll file into the Docker container


I can't copy my built project .dll file into the container.

It's present in the bin/Debug folder, but not in the Solution. Maybe that's the problem?.. Anyway, tried ADD, RUN cp, absolute path, relative path, forward slash, and backward slash, but nothing helped. Docker can't find the .dll he needs to copy.

Please, help.


Solution

  • I needed to add a dot before /bin/

    COPY ["./bin/Debug/VaftExamples.dll", "/VaftExamples.dll"]