New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framework target thinks build_context == wwwroot #383
Comments
workaround is quite complex...
and in docker-compose.yml add
|
@davhdavh FYI the build context being different is intentional. ASP.NET Core uses the solution as the build context to support building in the container with projects references. The ASP.NET scaffolding published on the host, so it uses the smaller build context of the project folder. If you need a file from outside your project directory in an ASP.NET project, you can change the build context: Specific to supporting VS you also need to add a file services:
webapplication8:
build:
args:
source: WebApplication8/obj/Docker/empty/
volumes:
- .\WebApplication8:C:\inetpub\wwwroot |
My point was consistency... The core docker is vastly different from the framework one. |
Framework and core targets does not interpret the build context in the same way
Microsoft.Docker.Templates.windows.dotnetframework.aspnet.docker-compose.vs.debug.yml has
Microsoft.Docker.Templates.windows.dotnetcore.aspnetcore.docker-compose.vs.debug.yml has
This is a huge problem, because framework targets are unable to include any dockerfile commands that target files outside of the primary source directory, e.g. COPY [ "myutil\myutil.exe", "c:" ].
The proper generated file for framework should be
The text was updated successfully, but these errors were encountered: