cli icon indicating copy to clipboard operation
cli copied to clipboard

Is it possible to specify a Dockerfile file?

Open erikcc02 opened this issue 4 years ago • 0 comments

Do you want to request a feature or report a bug?

I would like to make a suggestion

What is the current behavior?

Using Heroku's CLI, we have the -R option which checks Dockerfile files in directories but I couldn't find a way to specify a specific dockerfile file, for example "Dockerfile.heroku"

What is the expected behavior?

Have a -F option to specify a Dockerfile file

heroku container:push -f Dockerfile.heroku

It's just a suggestion, it seems to help me in scenarios where I want to have particularities in the images built for test and production environments, such as using a specific variable: ENV ASPNETCORE_ENVIRONMENT="Staging"

Or even export certificates...etc

erikcc02 avatar Nov 20 '21 01:11 erikcc02