我无法将我构建的项目.dll 文件复制到容器中。
它存在于 bin/Debug 文件夹中,但不存在于解决方案中。也许这就是问题所在?.. 无论如何,尝试了 ADD、RUN cp、绝对路径、相对路径、正斜杠和反斜杠,但没有任何帮助。 Docker找不到他需要拷贝的.dll
求求你帮忙
我的 Dockerfile:
FROM mono
ENV NUNIT_VERSION 3.4.1
RUN apt-get update
RUN apt-get install -y
RUN apt-get install -y wget
RUN nuget install NUnit.Runners -o /tmp/nunit -version $NUNIT_VERSION
RUN ls /tmp/nunit
RUN mkdir /nunit
RUN cp /tmp/nunit/NUnit.ConsoleRunner.$NUNIT_VERSION/tools/* /nunit
RUN cp /tmp/nunit/NUnit.Extension.NUnitProjectLoader.$NUNIT_VERSION/tools/* /nunit
RUN cp /tmp/nunit/NUnit.Extension.NUnitV2Driver.$NUNIT_VERSION/tools/* /nunit
RUN cp /tmp/nunit/NUnit.Extension.NUnitV2ResultWriter.$NUNIT_VERSION/tools/* /nunit
RUN cp /tmp/nunit/NUnit.Extension.VSProjectLoader.$NUNIT_VERSION/tools/* /nunit
RUN apt-get clean
COPY /VaftExamples/bin/Debug/VaftExamples.dll /VaftExamples.dll
ENTRYPOINT /nunit/nunit3-console.exe VaftExamples/bin/Debug/VaftExamples.dll --where "cat==$CATEGORY" --result=/nunit/test-results/TestResult.xml
我需要在/bin/之前加一个点
COPY ["./bin/Debug/VaftExamples.dll", "/VaftExamples.dll"]