Dockertools: docker-compose ignores DockerfileFastModeStage attribute

Created on 24 Mar 2020  路  5Comments  路  Source: microsoft/DockerTools

Currently, when using docker-compose support in VS, the generated docker-compose.vs.debug.g.yml file simply takes the first target from the Dockerfile when in fast mode. This ignores the possible custom value you can set in the MSBuild property DockerfileFastModeStage. It would be nice if this attribute would be incorporated in the docker-compose part as well.

Current work-around is to define the target property in a docker-compose.vs.debug.yml file.

enhancement under investigation

Most helpful comment

Thanks for the feedback. Seems like a reasonable request. This is one of those items where the compose tooling was created before the single Dockerfile experience and is the documented approach.

We likely can't get to this right away but will keep it open for investigation to see if we can also honor this MSBuild property from compose, but still have docker-compose-vs.debug.yml override if specified there as well.

All 5 comments

Thanks for the feedback. Seems like a reasonable request. This is one of those items where the compose tooling was created before the single Dockerfile experience and is the documented approach.

We likely can't get to this right away but will keep it open for investigation to see if we can also honor this MSBuild property from compose, but still have docker-compose-vs.debug.yml override if specified there as well.

Definitely +1 to this request.
Just ran into this today and wasted like 2 hours researching why my multistage dockerfiles weren't working with Compose in debug mode.

Ugh. Please add some priority to this.

Any news?

It's on our backlog, bumped the priority.

@NickMaev . Thanks again for the feedback. When digging into this we unfortunately realized this is a much larger work item than we anticipated in our compose tooling, and have not been able to prioritize with the other work we have. Given the easy workaround and interest in this, our plan is to add the workaround to our official documentation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pbering picture pbering  路  3Comments

tanaka-takayoshi picture tanaka-takayoshi  路  5Comments

kdlslyv picture kdlslyv  路  3Comments

ericwj picture ericwj  路  8Comments

hannesne picture hannesne  路  7Comments