Newbie help: Node.js app using Dockerfile memory-hog.js + memory-check.js

That is a NodeJS error, not related to Docker. writeFileSync() expects the data as string but you multipled the number in the environment variable converting it to an actual number. You need to convert it back probably by using allocatedMb.toString() but I am not a NodeJS developer so use the way which is recommended in NodeJS.

Note: Please, don’t share screenshots of codes. It makes the code harder to read, impossible to copy and search for an error message and depending on the size of the screen and the size of the picture we even need to zoom on it.

Some tips to format your post properly: