Support custom dockerfile names #3829
Labels
@aws-cdk/assets
Related to the @aws-cdk/assets package
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
🚀 Feature Request
General Information
Description
I have a project where multiple dockerfiles have the same build context. In this case, it would be nice to be able to pass in the dockerfile name. (I'm taking about the
-f
parameter indocker build
)Proposed Solution
In the
prepareContainerAsset
method,aws-cdk/packages/aws-cdk/lib/docker.ts
Lines 65 to 70 in 4afd40e
it's missing the
-f
parameter which could default to something like$path/Dockerfile
.Environment
Other information
Similar feature request: #3342 where a custom build context is being requested.
The text was updated successfully, but these errors were encountered: