Commit 45f39a3
committed
fix(docker): Mount /tmp and /home as tmpfs during ort requirements
This prevents caches and temporary files from being persisted to the
image, reducing its size by ~500 MB.
More importantly, it fixes an "AccessDenied" error when running with
ort-ci-action. Burrito-based tools (mix_sbom, bombom) extract a musl
runtime to /tmp on first run. When this happens during the Docker build,
the files are owned by the ort user with mode 0754 (no execute for
others). The ort-ci-action runs containers with -u $(id -u):$(id -g),
so the user may not be ort and cannot execute the musl library.
By using tmpfs mounts, these files are not persisted and each container
creates them fresh with appropriate permissions.
Signed-off-by: Jonatan Männchen <jonatan@maennchen.ch>1 parent f0257be commit 45f39a3
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
728 | 732 | | |
729 | 733 | | |
730 | 734 | | |
| |||
739 | 743 | | |
740 | 744 | | |
741 | 745 | | |
742 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
743 | 750 | | |
744 | 751 | | |
0 commit comments