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

added HOSTNAME arg to Dockerfile #174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

sr258
Copy link

@sr258 sr258 commented Jan 31, 2021

The built docker image doesn't work for me if I don't add the ARG HOSTNAME to the Dockerfile. The reason is that webpack needs the process.env variable to be present when the build is executed.

The docker build command must also be executed with --build-arg HOSTNAME=xxx.example.org to inject the hostname.

The fact hat webpack hard-codes the hostname into the javascript bundles means that the docker containers aren't reusable and have to be built for every domain they run on - they can't be swapped between dev, staging and production...

@wictorwilen wictorwilen self-requested a review February 1, 2021 08:14
@RickVanRousselt RickVanRousselt self-assigned this Sep 23, 2022
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.

None yet

2 participants