Building (Docker)
Docker is used to build official releases, and nightly images in Ubuntu LTS 22.04 Docker containers at the teams https://github.com/LibreELEC/actions CI/CD.
Last updated
Was this helpful?
The following links will help you get started with using docker to build LibreELEC.
# apply patches to make the image like in CIsed -i -e "/^USER docker/i RUN ln -s /usr/bin/gcc-10 /usr/bin/cc" tools/docker/focal/Dockerfile# per tools/docker/README.mddocker build --pull -t libreelec tools/docker/focal
For a list of commands, see.
docker run \ -it --rm \ --log-driver none \ -v `pwd`:/build -w /build \ -e PROJECT=Generic \ -e ARCH=x86_64 \ -e MTPROGRESS=yes \ libreelec CMD
Limit CPU and RAM so your system remains responsive.
docker run \ -it --rm \ --log-driver none \ -v `pwd`:/build -w /build \ `# setting these the same disables swapping` \ --memory "6g" --memory-swap "6g" \ `# uses all cpus, but will reserve cycles on each` \ `#--cpus "4"` \ `# limit to certain processors` \ --cpuset-cpus "0-3" \ -e PROJECT=Generic \ -e ARCH=x86_64 \ -e MTPROGRESS=yes \ libreelec CMD