Fix #2741 - Prevent excessive disk writes by only adding frontend service when in development #3044
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This implements the fix suggested in #2741 (comment)
Unfortunately I'm not sure how to properly build the docker image in order to test this myself, so this is for now untested. The build error I get is:
And attempting
npm install
in thefrontend
dir yieldsnpm ERR! ERESOLVE unable to resolve dependency tree
.If anyone is able to assist I'd really appreciate it 🙏 in the meantime I've also reached out to the author of s6 (who wrote the comment I linked to) to see if they can confirm that this is the right strategy.
EDIT: just seen that the PR branch gets built automatically, so I'm testing with that 👍