Hi, does anyone have a working example of a @foggy wing/[apollo|graphql] v12 repo that successfully runs on a docker container?
I am working on an app using these dependencies and it runs locally, but when I try to build in a container it hangs after initializing the GraphQLModule depdencies, and then dies with an OOM error.
When searching online it seems most examples are not using the latest versions.
Local logs:
...
[Nest] 13612 - 11/09/2023, 11:55:39 AM LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +1ms
[Nest] 13612 - 11/09/2023, 11:55:39 AM LOG [InstanceLoader] GraphQLModule dependencies initialized +0ms
[Nest] 13612 - 11/09/2023, 11:55:39 AM LOG [GraphQLModule] Mapped {/graphql, POST} route +87ms
[Nest] 13612 - 11/09/2023, 11:55:39 AM LOG [NestApplication] Nest application successfully started +1ms
versus container logs:
...
[Nest] 1 - 11/09/2023, 8:13:18 PM LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +1ms
[Nest] 1 - 11/09/2023, 8:13:18 PM LOG [InstanceLoader] GraphQLModule dependencies initialized +0ms
<--- Last few GCs --->
[1:0xffffa5df23c0] 79195 ms: Mark-sweep 964.9 (1003.8) -> 958.5 (1004.3) MB, 642.2 / 0.0 ms (average mu = 0.229, current mu = 0.094) task scavenge might not succeed
[1:0xffffa5df23c0] 79926 ms: Mark-sweep 965.5 (1004.3) -> 959.1 (1005.0) MB, 632.5 / 0.0 ms (average mu = 0.184, current mu = 0.135) task scavenge might not succeed
[1:0xffffa5df23c0] 80653 ms: Mark-sweep 966.3 (1005.0) -> 959.7 (1005.8) MB, 661.0 / 0.0 ms (average mu = 0.139, current mu = 0.090) task scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory