I have a node.js app where I need to run the
In this forum I could see that others had luck with getting node.js using
balenalib/raspberrypi3-node:10-stretch-run image in
I’m actually using a
Dockerfile.template like this:
This works great for me on my RPi3.
However, when I create an app that has RPi4 as device type, and push to that app, it will pull the image
balenalib/raspberrypi4-64-node:10-stretch-run and for some reason, running
vcgencmd inside that container will give us a
command not found error.
How can it be that the same image behaves differently for RPi 3 and 4?
Also, I discovered, that if I simply hardcode
FROM balenalib/raspberrypi3-node:10-stretch-run image in my
Dockerfile instead of using a template, it works! I can run
vcgencmd on both the RPi 3 and 4, using the RPi3 image.
How can that be?
For now, I could just hardcode the RPi 3 image for both device types, and cross my finger that it will keep working, but I don’t want to rely on “hacks” in my production environment, unless I understand the issue and the reason for the hack makes sense.