package main
import (
"alpha.dagger.io/os"
"alpha.dagger.io/alpine"
)
// Write a file to an empty dir
EmptyDir: {
f: os.#File & {
path: "/foo.txt"
write: data: "hello world!"
}
f: contents: "hello world!"
// Read from a pre-existing file
Read: {
from: alpine.#Image & {
version: "3.13.4"
path: "/etc/alpine-release"
f: contents: "3.13.4\n"