Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to specify a Dockerfile file? #1894

Open
erikcc02 opened this issue Nov 20, 2021 · 1 comment
Open

Is it possible to specify a Dockerfile file? #1894

erikcc02 opened this issue Nov 20, 2021 · 1 comment

Comments

@erikcc02
Copy link

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

@sbosio
Copy link
Contributor

sbosio commented Sep 19, 2024

Hello @erikcc02, sorry for the belated answer.

Have you explored using the default Dockerfile file and passing the env var values using --arg option flags?

I can add the feature request to our backlog, if that approach doesn't work for your use case, though. We cannot make commitments for a timeline just yet.

Best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants