You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when specifying a build in a compose file there's no way (that I know of) to reference a particular target in a multi-stage build.
You might want to do this if you are using compose for running a local development stack. If an early stage of your build pipeline sets up an image that is suitable for live-development purposes (as well as build), but the later stage(s) crunch it down to a minimal production image, so you can't use the Dockerfile for your live-dev image. Currently, you might instead create 2 docker files, which is more complex and worse to manage.
Adding a 'target' yml arg to build would resolve this, as per docker build. e.g.
Dockerfile:
Activity
tomwidmer commentedon Sep 15, 2017
Actually, I can see that this appears to be supported already (possibly not released yet): #5011
Sorry for the noise!
Fix local go_lintfix errors (docker#5191)
Fix local go_lintfix errors (docker#5191)
Fix local go_lintfix errors (docker#5191)
Fix local go_lintfix errors (docker#5191)
Fix local go_lintfix errors (#5191)