Skip to content

fix: set TMPDIR=/data for scratch runtime#39

Merged
skgbafa merged 2 commits intomainfrom
fix/tmpdir-env
Mar 15, 2026
Merged

fix: set TMPDIR=/data for scratch runtime#39
skgbafa merged 2 commits intomainfrom
fix/tmpdir-env

Conversation

@skgbafa
Copy link
Copy Markdown
Contributor

@skgbafa skgbafa commented Mar 15, 2026

Set TMPDIR=/data in Dockerfile. Scratch has no /tmp and the tinycloud user can't write to root-owned directories.

skgbafa added 2 commits March 15, 2026 00:33
The scratch base image has no /tmp directory, causing "No such file or
directory" errors on write operations that use temp files. Create an
empty /tmp with sticky bit in the builder and copy to runtime.
The scratch base image has no /tmp directory and no writable temp location.
Set TMPDIR to /data which is owned by the tinycloud user and always exists.
@skgbafa skgbafa merged commit cb9969d into main Mar 15, 2026
13 of 14 checks passed
@skgbafa skgbafa deleted the fix/tmpdir-env branch March 15, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant