fix: chmod 1777 /tmp in Docker image + runtime fallback

Bun's tempdir AccessDenied persists because the container /tmp is
root-owned. Fix at both layers:
1. Dockerfile: chmod 1777 /tmp during build
2. Workflow: chmod + TMPDIR/BUN_TMPDIR fallback at runtime

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-23 17:17:50 -07:00
parent 6f84028a8d
commit 817817e0db
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -58,4 +58,4 @@ RUN mv /workspace/node_modules /opt/node_modules_cache \
RUN useradd -m -s /bin/bash runner \
&& chmod -R a+rX /opt/node_modules_cache \
&& mkdir -p /home/runner/.gstack && chown -R runner:runner /home/runner/.gstack \
&& mkdir -p /tmp/bun-cache && chmod 1777 /tmp/bun-cache
&& chmod 1777 /tmp