Bundling: cannot set target from Dockerfile #20143
Labels
@aws-cdk/aws-ecr
Related to Amazon Elastic Container Registry
@aws-cdk/aws-ecr-assets
Related to AWS CDK Docker Image Assets
@aws-cdk-containers/ecs-service-extensions
Related to ecs-service-extensions package
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p2
Describe the feature
Having an option to pass target for the docker build command.
Docket build help output:
Use Case
I have multiple targets in the dockerfile which are using "from" instruction from previous targets, as well I have a target which only mounts a directory and starts webpack. I do this for the docker-compose, so I can run all my services/apps with one command.
Example:
Proposed Solution
Allow passing target for the dockerfile to the options.
Other Information
No response
Acknowledgements
CDK version used
^2.6.0
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: