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

Dockerfile doesn't run because no .env in container #124

Open
ahshabbir opened this issue Oct 4, 2022 · 0 comments
Open

Dockerfile doesn't run because no .env in container #124

ahshabbir opened this issue Oct 4, 2022 · 0 comments
Labels
bug report Something isn't working

Comments

@ahshabbir
Copy link
Contributor

While the dockerfile builds correctly, the resulting image won't run because no .env has been imported into the container. There are a couple of ways we can go about handling this issue:

  1. Have the builder specify a build-arg with the path to the .env file - this will be imported into the container
  2. Make loading the .env file optional, i.e. maybe check if the environment variable is already defined, if not, then load the .env file.

Any thoughts on this?

@AdamMcAdamson AdamMcAdamson added the bug report Something isn't working label Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants