This creates a new Dockerfile to be used with the compile-with-docker.sh script.
The original Dockerfile copies code into the container and creates compiled firmware owned by root. This one mounts the repo as a volume under /app. The compilation step is run by the current userid instead of root. The resultant artifacts are correctly chmodded to 644, as they are not executables. The stray copy of firmware.ld that shows up in compiled-firmware is now omitted. This Dockerfile brings in fewer dependencies, in my case decreasing the size of the build container from 4.24GB to 3.75GB.
The same approach could likely be taken with compile-with-docker.bat, but I don't have a Windows system here for development.
This creates a new Dockerfile to be used with the
compile-with-docker.sh
script.The original Dockerfile copies code into the container and creates compiled firmware owned by root. This one mounts the repo as a volume under
/app
. The compilation step is run by the current userid instead of root. The resultant artifacts are correctly chmodded to 644, as they are not executables. The stray copy offirmware.ld
that shows up incompiled-firmware
is now omitted. This Dockerfile brings in fewer dependencies, in my case decreasing the size of the build container from 4.24GB to 3.75GB.The same approach could likely be taken with
compile-with-docker.bat
, but I don't have a Windows system here for development.Fixes https://github.com/egzumer/uv-k5-firmware-custom/issues/576