Skip to content

Env var improvements - #4

Open
2-shell wants to merge 2 commits into
stuckj:mainfrom
2-shell:feature/env-var-improvements
Open

Env var improvements#4
2-shell wants to merge 2 commits into
stuckj:mainfrom
2-shell:feature/env-var-improvements

Conversation

@2-shell

@2-shell 2-shell commented Jan 8, 2023

Copy link
Copy Markdown

Moving the env var definitions into the Dockerfile would make it IMHO clearer that these variables are in fact part of the image's "API".

This also enables discovering the vars with docker inspect, without looking inside the image and find its entrypoint script.

Another side effect is, that we can avoid code duplication of default values (e.g. port).
This is currently not a big deal, but could help with future additions.

This is of course subjective and I totally understand if you would rather keep things like they are, so this is just a suggestion.

Tuschl added 2 commits January 8, 2023 23:39
Moving the env var definitions into the Dockerfile makes it IMHO clearer
that these variables are in fact part of the image's "API".

This also enables discovering the vars with `docker inspect`, without
looking into the image's entrypoint script.

Another side effect is, that we can avoid code duplication of default
values (e.g. port). This is not a big deal, but could help with future
additions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants