Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(dockerfile): bump the OS to bullseye and optimize the build
- Bump the Debian OS version from buster-slim to bullseye-slim, the current stable. - That OS bump speeds up installing numpy, since it can now be installed from a wheel instead of being compiled from source. - Add `MAKEFLAGS="-j$(nproc)"` in front of `pip install` to use all CPUs available in those cases where compilation from source is still required. - Reorder some instructions to improve docker cache hits. - Save the Dockerfile inside the image, for self-documentation purposes.
- Loading branch information