Skip to content

fix: add /tmp directory to scratch runtime image#38

Merged
skgbafa merged 1 commit intomainfrom
fix/dockerfile-tmp
Mar 15, 2026
Merged

fix: add /tmp directory to scratch runtime image#38
skgbafa merged 1 commit intomainfrom
fix/dockerfile-tmp

Conversation

@skgbafa
Copy link
Copy Markdown
Contributor

@skgbafa skgbafa commented Mar 15, 2026

Summary

Scratch base image has no /tmp directory. Write operations that use temp files fail with No such file or directory (os error 2) at path "/tmp/.tmpXXX".

Creates an empty /tmp with sticky bit (1777) in the builder stage and copies it to the scratch runtime.

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.
@skgbafa skgbafa merged commit e2590f4 into main Mar 15, 2026
13 of 14 checks passed
@skgbafa skgbafa deleted the fix/dockerfile-tmp branch March 15, 2026 00:34
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