#Dockerfile ADD equivalent that extracts `.tar.gz` contents?

1 messages · Page 1 of 1 (latest)

devout oyster
#

Whats the best way to replicate the functionality of ADD docker command which gunzips the contents of a tarball?

bleak pulsar
#

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

fervent gale
#

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.

devout oyster
#

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