#Dockerfile ADD equivalent that extracts `.tar.gz` contents?
1 messages · Page 1 of 1 (latest)
you'd have to fetch the file using the http operation and then copy that to a container with tar to actually extract it. We currently don't support automatic unpacking. cc @fervent gale n case you thought about this while implementing the With functions
I think Dockerfiles only decompress automatically when using local sources. But yeah, right now what Marcos said would be the way to do it.
We could probably add a builtin option to do this, but in general to prevent API bloat I'd probably prefer we just leave that to "userspace" for now, unless this is causing great hardship. This type functionality would be a great candidate for extensions once those are shipped.
hmm, ok. I have the file generated locally. I'd have to untar it myself not a big deal but it definitely would be nice to have that handled by dagger